名前空間
変種
操作

std::tuple::operator=

提供: cppreference.com
< cpp‎ | utility‎ | tuple

 
 
ユーティリティライブラリ
支援を入力します (basic types, RTTI, type traits)
動的なメモリ管理
エラー処理
プログラムユーティリティ
可変個引数関数
日付と時刻
関数オブジェクト
initializer_list(C++11)
bitset
hash(C++11)
関係演算子
Original:
Relational operators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
ペアとタプル
Original:
Pairs and tuples
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pair
tuple(C++11)
piecewise_construct_t(C++11)
piecewise_construct(C++11)
フォワード、スワップ、および移動
Original:
Swap, forward and move
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
swap
forward(C++11)
move(C++11)
move_if_noexcept(C++11)
declval(C++11)
 
std::tuple
メンバ関数
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
tuple::tuple
tuple::operator=
tuple::swap
非メンバ関数
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
make_tuple
tie
forward_as_tuple
None
operator=
operator!=
operator<
operator<=
operator>
operator>=
std::swap
get
ヘルパークラス
Original:
Helper classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
tuple_size
tuple_element
uses_allocator
ignore
 
tuple& operator=( const tuple& other );
(1) (C++11およびそれ以降)
tuple& operator=( tuple&& other );
(2) (C++11およびそれ以降)
template< class... UTypes >
tuple& operator=( const tuple<UTypes...>& other );
(3) (C++11およびそれ以降)
template< class... UTypes >
tuple& operator=( tuple<UTypes...>&& other );
(4) (C++11およびそれ以降)
template< class U1, class U2 >
tuple& operator=( const pair<U1,U2>& p );
(5) (C++11およびそれ以降)
template< class U1, class U2 >
tuple& operator=( pair<U1,U2>&& p );
(6) (C++11およびそれ以降)
別のタプルまたはペアの内容でタプルの内容を置き換え.
Original:
Replaces the contents of the tuple with the contents of another tuple or a pair.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
コピー代入演算子。 otherの対応する要素のコピーを使って各要素を置き換え.
Original:
Copy assignment operator. Replaces each element with a copy of the corresponding element of other.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
代入演算子を移動します。ムーブセマンティクスを使用してotherの対応する要素と各要素を置き換え.
Original:
Move assignment operator. Replaces each element with the corresponding element of other using move semantics.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
すべてiは、std::get<i>(other)std::get<i>(*this)を代入.
Original:
For all i, assigns std::get<i>(other) to std::get<i>(*this).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
すべてiは、std::forward<Ui>(std::get<i>(other))std::get<i>(*this)を代入.
Original:
For all i, assigns std::forward<Ui>(std::get<i>(other)) to std::get<i>(*this).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
5)
p.firstの2番目の要素に対する*thisp.secondの最初の要素を*thisを代入.
Original:
Assigns p.first to the first element of *this and p.second to the second element of *this.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
6)
std::forward<U1>(p.first)の2番目の要素に対する*thisstd::forward<U2>(p.second)の最初の要素を*thisを代入.
Original:
Assigns std::forward<U1>(p.first) to the first element of *this and std::forward<U2>(p.second) to the second element of *this.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] パラメータ

other -
このタプルの内容を置換するタプル
Original:
tuple to replace the contents of this tuple
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
p -
この2要素のタプルの内容を交換するペア
Original:
pair to replace the contents of this 2-tuple
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 値を返します

*this

[編集] 例外

1)
(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
noexcept specification:  (C++11およびそれ以降)
noexcept(noexcept(

    is_nothrow_move_assignable<T0>::value &&
    is_nothrow_move_assignable<T1>::value &&
    is_nothrow_move_assignable<T2>::value &&
    ...

)
3-5)
(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
6)
noexcept specification:  
noexcept
  (C++11およびそれ以降)

[編集]

[編集] も参照してください