◐ Shell
clean mode source ↗

C + + Konzepte: CopyInsertable – cppreference.com

Aus cppreference.com

<metanoindex/>

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.

Anforderungen

Der Typ ist T CopyInsertable in den Behälter X wenn bei

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

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.

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:

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.