Conceptos C++: CopyInsertable
De cppreference.com
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.
You can help to correct and verify the translation. Click here for instructions.
Requisitos
El tipo es
T CopyInsertable en el contenedor X si, dadaOriginal:
The type
T is CopyInsertable into the container X if, givenThe 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.
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.
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.
You can help to correct and verify the translation. Click here for instructions.
