Conceptos C++: CopyInsertable - cppreference.com
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate. La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
Especifica que una instancia del tipo de copia puede ser construido en el lugar, en el almacenamiento sin inicializar .
Original:
Specifies that an instance of the type can be copy-constructed in-place, in uninitialized storage.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Requisitos
El tipo es T CopyInsertable en el contenedor X si, dada
Original:
The type T is CopyInsertable into the container X if, given
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
A
|
el tipo asignador define como Original: the allocator type defined as The text has been machine-translated via Google Translate. |
m
|
el valor-de Original: the lvalue of type The text has been machine-translated via Google Translate. |
p
|
el puntero de Original: the pointer of type The text has been machine-translated via Google Translate. |
v
|
expresión de Original: expression of type The text has been machine-translated via Google Translate. |
la siguiente expresión es bien formado:
Original:
the following expression is well-formed:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
std::allocator_traits<A>::construct(m, p, v);
Tenga en cuenta que si es A std::allocator<T>, entonces esto va a llamar a la colocación de nueva construcción, como por ::new((void*)p) T(v)
Original:
Note that if A is std::allocator<T>, then this will call placement-new, as by ::new((void*)p) T(v)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.