std::uses_allocator - cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
| Definido no cabeçalho <memory> |
||
|
|
(desde C++11) | |
Se T tem um membro allocator_type typedef que é convertível de Alloc, fornece o membro constante igual a value true. Caso contrário value é false.
Original:
If T has a member typedef allocator_type which is convertible from Alloc, provides the member constant value equal to true. Otherwise value is false.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Herdado de std::integral_constant
Member constants
Original:
The text has been machine-translated via Google Translate. (membro estático público constante) | |
Member functions
converte o objeto em Original: converts the object to The text has been machine-translated via Google Translate. (função pública membro) | |
Member types
Tipo Original: Type The text has been machine-translated via Google Translate. |
Definition |
value_type
|
bool
|
type
|
std::integral_constant<bool, value>
|
Especializações
Especializações personalizados do traço tipo std::uses_allocator são permitidos para tipos que não têm o allocator_type membro typedef mas satisfazer um dos seguintes requisitos:
Original:
Custom specializations of the type trait std::uses_allocator are allowed for types that do not have the member typedef allocator_type but satisfy one of the following two requirements:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
T tem um construtor que leva std::allocator_arg_t como o primeiro argumento, e Alloc como segundo argumento.
Original:
T has a constructor which takes std::allocator_arg_t as the first argument, and Alloc as the second argument.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
T tem um construtor que leva Alloc como último argumento.
Original:
T has a constructor which takes Alloc as the last argument.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Os seguintes especializações já são fornecidas pela biblioteca padrão:
Original:
The following specializations are already provided by the standard library:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
especializa o traço tipo std::uses_allocator Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. (especialização modelo. classe) [edit] | |
especializa o traço tipo std::uses_allocator Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. (modelo de função) [edit] | |
especializa o traço tipo std::uses_allocator Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. (modelo de função) [edit] | |
especializa o traço tipo std::uses_allocator Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. (modelo de função) [edit] | |
especializa o traço tipo std::uses_allocator Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. (especialização modelo. classe) [edit] | |
especializa o traço tipo std::uses_allocator Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. (especialização modelo. classe) [edit] | |
especializa o traço tipo std::uses_allocator Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. (especialização modelo. classe) [edit] | |
Notas
Esta característica tipo é utilizado por std::scoped_allocator_adaptor e pode ser usado por allocators personalizados para determinar se o objecto a ser construído é-se capaz de usar um alocador (por exemplo, é um recipiente), caso em que um alocador devem ser passados para o construtor.
Original:
This type trait is used by std::scoped_allocator_adaptor and may be used by custom allocators to determine whether the object being constructed is itself capable of using an allocator (e.g. is a container), in which case an allocator should be passed to its constructor.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Veja também
(C++11) |
um objeto de std::allocator_arg_t tipo usado para selecionar alocador de reconhecimento de construtores Original: an object of type std::allocator_arg_t used to select allocator-aware constructors The text has been machine-translated via Google Translate. (constante) [edit] |
(C++11) |
tipo de etiqueta usada para selecionar sobrecargas alocador de reconhecimento do construtor Original: tag type used to select allocator-aware constructor overloads The text has been machine-translated via Google Translate. (classe) [edit] |
(C++11) |
implementa multi-nível alocador de multi-nível de contêineres Original: implements multi-level allocator for multi-level containers The text has been machine-translated via Google Translate. (modelo de classe) [edit] |