std::scoped_allocator_adaptor::scoped_allocator_adaptor
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <scoped_allocator>
|
||
| scoped_allocator_adaptor() |
(1) | (ya que C + +11) |
| template< class OuterA2 > scoped_allocator_adaptor( OuterA2&& outerAlloc, const InnerAllocs&... innerAllocs) |
(2) | (ya que C + +11) |
| scoped_allocator_adaptor( const scoped_allocator_adaptor& other ) |
(3) | (ya que C + +11) |
| scoped_allocator_adaptor( scoped_allocator_adaptor&& other ) |
(4) | (ya que C + +11) |
| template< class OuterA2 > scoped_allocator_adaptor( const scoped_allocator_adaptor<OuterA2, InnerAllocs...>& other ) |
(5) | (ya que C + +11) |
| template< class OuterA2 > scoped_allocator_adaptor( scoped_allocator_adaptor<OuterA2, InnerAllocs...>&& other ) |
(6) | (ya que C + +11) |
Constructor por defecto: el valor se inicializa la clase base
2) OuterAlloc y el objeto miembro asignador interior, si es utilizada por la aplicación .Original:
Default constructor: value-initializes the
OuterAlloc base class and the inner allocator member object, if used by the implementation.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Construye la clase base
3) OuterAlloc de std::forward<OuterA2>(outerAlloc), y los asignadores de interiores con innerAllocs... .Original:
Constructs the base class
OuterAlloc from std::forward<OuterA2>(outerAlloc), and the inner allocators with innerAllocs....The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Copy-constructor: inicializa cada asignador del asignador de
4) other correspondienteOriginal:
Copy-constructor: initializes each allocator from the corresponding allocator of
otherThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Move-constructor: mueve cada asignador de la correspondiente imputación de
5) other en *thisOriginal:
Move-constructor: moves each allocator from the corresponding allocator of
other into *thisThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Inicializa cada asignador desde el asignador de
6) other correspondienteOriginal:
Initializes each allocator from the corresponding allocator of
otherThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Inicializa cada asignador desde el asignador de
other correspondiente, utilizando la semántica de movimiento .Original:
Initializes each allocator from the corresponding allocator of
other, using move semantics.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Parámetros
| outerAlloc | - | constructor argumento para el asignador exterior
Original: constructor argument for the outer allocator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| innerAllocs... | - | argumentos de constructor para los colocadores de interiores
Original: constructor arguments for the inner allocators The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| other | - | otro
std::scoped_allocator_adaptorOriginal: another std::scoped_allocator_adaptorThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Excepciones
2-6)[editar] Ver también
| asigna almacenamiento sin inicializar utilizando el asignador exterior Original: allocates uninitialized storage using the outer allocator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (miembro público función) | |
| construye un objeto de almacenamiento asignado, pasando el asignador interior a su constructor, si procede Original: constructs an object in allocated storage, passing the inner allocator to its constructor if appropriate The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (miembro público función) | |