Espacios de nombres
Variantes
Acciones

Conceptos C++: CopyInsertable

De cppreference.com
< cpp‎ | concept
 
 
C + + conceptos
Básica
Original:
Basic
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Biblioteca-Wide
Original:
Library-Wide
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Container
Original:
Container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Elementos contenedores
Original:
Container Elements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
CopyInsertable
(C++11)
Iterator
Original:
Iterator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Números aleatorios
Original:
Random Numbers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Concurrencia
Original:
Concurrency
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
Otros
Original:
Other
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
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.

[editar] 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 X::allocator_type
Original:
the allocator type defined as X::allocator_type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
m
el valor-de A clase obtenida a partir de X::get_allocator()
Original:
the lvalue of type A obtained from X::get_allocator()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
p
el puntero de T* tipo preparado por el contenedor
Original:
the pointer of type T* prepared by the container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
v
expresión de T tipo, siempre como argumento para push_back (), etc
Original:
expression of type T, provided as the argument to push_back(), etc
The text has been machine-translated via Google Translate.
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.

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.