std::allocator::construct
De 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 <memory>
|
||
| void construct( pointer p, const_reference val ); |
(hasta C + +11) | |
| template< class U, class... Args > void construct( U* p, Args&&... args ); |
(ya que C + +11) | |
Construye un objeto de tipo
1) T en almacenamiento asignado sin inicializar apuntado por p, mediante la colocación de nuevoOriginal:
Constructs an object of type
T in allocated uninitialized storage pointed to by p, using placement-newThe 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.
Llamadas new((void *)p) T(val)
2) Original:
Calls new((void *)p) T(val)
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.
Llamadas ::new((void *)p) U(std::forward<Args>(args)...)
Original:
Calls ::new((void *)p) U(std::forward<Args>(args)...)
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
| p | - | puntero al almacenamiento asignado sin inicializar
Original: pointer to allocated uninitialized storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| val | - | el valor que se utiliza como argumento del constructor de copia
Original: the value to use as the copy constructor argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| args... | - | los argumentos del constructor de usar
Original: the constructor arguments to use The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Valor de retorno
(Ninguno)
Original:
(none)
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] Ver también
| [estático] |
construye un objeto en el almacenamiento asignado Original: constructs an object in the allocated storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) |
| funciones de asignación Original: allocation functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |