C++ コンセプト: CopyAssignable
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Specifies that an instance of the type can be copy-assigned (copied).
この概念は、
MoveAssignable
を意味する.Original:
This concept implies
MoveAssignable
.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.
[編集] 要件
タイプは、以下の機能を実装する必要があります
Original:
The type must implement the following functions:
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.
Type::operator=
Type& Type::operator=( Type& other ); Type& Type::operator=( const Type& other ); |
(亜種の一つで十分です) | |
Copy assignment operator: assigns the contents of other
. The internal state of other
must not be modified.
The following expressions must have the specified effects:
式
Original: Expression The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Effects |
a = v; | a is equivalent to v , where a is an instance of Type and v is an instance of Type . v must be unchanged.
|
[編集] 参照
(C++11) (C++11) (C++11) |
タイプかどうかをチェックするには、コピー代入演算子を持っています Original: checks if a type has a copy assignment operator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |