C + + Konzepte: CopyInsertable
Aus 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. |
Gibt an, dass eine Instanz des Typs kann copy-gebaut in-place, in initialisierten Speicher .
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.
[Bearbeiten]Anforderungen
Der Typ ist
T
CopyInsertable
in den Behälter X
wenn beiOriginal:
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 | die Zuordnungsvorrichtung Typ wie X::allocator_type definiert 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 | der L-Wert des Typs A von X::get_allocator() erhalten 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 | der Zeiger vom Typ T* durch den Behälter hergestellt 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 | Ausdruck des Typs T als Argument bereitgestellt, um 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. |
Der folgende Ausdruck ist gut gebildet:
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);
Beachten Sie, dass, wenn
A
ist std::allocator<T>, dann rufen placement-neue, wie ::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.