C++ コンセプト: CopyInsertable
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
型のインスタンスが初期化されていないストレージに、その場でコピーを構築することができることを指定します.
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.
[編集] 要件
与えられた、場合、型
T
はCopyInsertable
コンテナX
になりますOriginal:
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
|
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
|
タイプ
A のlvalueは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
|
型のポインタ
T* コンテナによって作成した 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
|
一back()に引数として提供される型
T の発現等 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. |
次の式は、整形式である:
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);
注意してください場合
A
std::allocator<T>である場合、このよう::new((void*)p) T(v)によって、配置-newを呼び出します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.