std::valarray::operator=
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
valarray<T>& operator=( const valarray<T>& other ); |
(1) | |
valarray<T>& operator=( valarray<T>&& other ); |
(2) | (C++11およびそれ以降) |
valarray<T>& operator=( const T& val ); |
(3) | |
valarray<T>& operator=( const std::slice_array& ); |
(4) | |
valarray<T>& operator=( const std::gslice_array& ); |
(5) | |
valarray<T>& operator=( const std::mask_array& ); |
(6) | |
valarray<T>& operator=( const std::indirect_array& ); |
(7) | |
valarray<T>& operator=( std::initializer_list<T> il ); |
(8) | (C++11およびそれ以降) |
数値配列の内容を置き換え.
Original:
Replaces the contents of the numeric array.
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.
1)
コピー代入演算子。その他の内容のコピーを使って内容を置き換え.
Original:
Copy assignment operator. Replaces the contents with a copy of the contents of other.
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.
2)
代入演算子を移動します。他の使用して移動セマンティクスのもの(すなわち、他のデータはこの数値配列に他から移動されている)との内容を置換します。
other
その後は有効ですが、特定されていない状態になっている.Original:
Move assignment operator. Replaces the contents with those of other using move semantics (i.e. the data in other is moved from other into this numeric array).
other
is in valid, but unspecified state afterwards.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.
3)
数値配列
val
の値内の各値を代入.Original:
Assigns each value in the numeric array the value of
val
.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.
This section is incomplete |
8)
初期化子リスト
il
の内容を割り当てます。 {{{1}}}に相当.Original:
Assigns the contents of initializer list
il
. Equivalent to {{{1}}}.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.
[編集] パラメータ
other | - | 代入を行う別の数値配列
Original: another numeric array to assign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||
val | - | と各要素を初期化する値
Original: the value to initialize each element with The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
| ||
il | - | 割り当てるには、初期化子リスト
Original: initializer list to assign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] 値を返します
*this
[編集] 例外
1) (なし)
2)
noexcept 指定:
noexcept
3-8) (なし)