<div class="t-tr-text">C + +: concetti<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">C++ concepts:</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div> CopyInsertable
Da cppreference.com.
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Specifica che un esempio del tipo può essere copia-costruito sul posto, nella memoria non inizializzata.
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.
[modifica] Requisiti
Il
T
tipo è CopyInsertable
nel X
contenitore se, datoOriginal:
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.
A
|
del tipo definito come allocatore
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
|
il valore assegnabile di
A tipo ottenuto da 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
|
il puntatore di tipo
T* preparato dal contenitore 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
|
espressione di
T tipo, a condizione che come argomento di push_back (), ecc 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 seguente espressione è ben formato:
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);
Si noti che se è
A
std::allocator<T>, allora questo si chiama posizionamento nuovo, come da ::new((void*)p) T(v)Original:
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.