std::scoped_allocator_adaptor::scoped_allocator_adaptor
Da 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) | (a partir do C++ 11) |
| template< class OuterA2 > scoped_allocator_adaptor( OuterA2&& outerAlloc, const InnerAllocs&... innerAllocs) |
(2) | (a partir do C++ 11) |
| scoped_allocator_adaptor( const scoped_allocator_adaptor& other ) |
(3) | (a partir do C++ 11) |
| scoped_allocator_adaptor( scoped_allocator_adaptor&& other ) |
(4) | (a partir do C++ 11) |
| template< class OuterA2 > scoped_allocator_adaptor( const scoped_allocator_adaptor<OuterA2, InnerAllocs...>& other ) |
(5) | (a partir do C++ 11) |
| template< class OuterA2 > scoped_allocator_adaptor( scoped_allocator_adaptor<OuterA2, InnerAllocs...>&& other ) |
(6) | (a partir do C++ 11) |
Construtor padrão: valor inicializa a classe base
2) OuterAlloc eo objeto membro interno alocador, se usado pela implementação.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.
Constrói a classe base
3) OuterAlloc de std::forward<OuterA2>(outerAlloc), e os alocadores de interiores com 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.
Copiar-construtor: inicializa cada alocador do alocador correspondente de
4) otherOriginal:
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.
Mover-construtor: move cada alocador do alocador correspondente de
5) other em *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 alocador do alocador correspondente de
6) otherOriginal:
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 alocador do alocador correspondente de
other, usando a semântica mover.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 | - | argumento do construtor para o alocador 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 do construtor para os alocadores 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 | - | outro
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] Exceções
2-6)[editar] Veja também
| aloca não inicializado usando o alocador de armazenamento externo 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. (função pública membro) | |
| constrói um objeto no armazenamento alocado, passando o alocador interior de seu construtor, se necessário 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. (função pública membro) | |