std::tuple<Types...>::operator=
Template:cpp/utility/tuple/sidebar Template:ddcl list begin <tr class="t-dcl ">
<td ><td > (1) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td ><td > (2) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td >tuple& operator=( const tuple<UTypes...>& other );
<td > (3) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td >tuple& operator=( tuple<UTypes...>&& other );
<td > (4) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td >tuple& operator=( const pair<U1,U2>& p );
<td > (5) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td >tuple& operator=( pair<U1,U2>&& p );
<td > (6) </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
Replaces the contents of the tuple with the contents of another tuple or a pair.
1) Copy assignment operator. Replaces each element with a copy of the corresponding element of other
.
2) Move assignment operator. Replaces each element with the corresponding element of other
using move semantics.
3) For all i
, assigns Template:cpp to Template:cpp.
4) For all i
, assigns Template:cpp to Template:cpp.
5) Assigns Template:cpp to the first element of Template:cpp and Template:cpp to the second element of Template:cpp.
6) Assigns Template:cpp to the first element of Template:cpp and Template:cpp to the second element of Template:cpp.
Contents |
Parameters
other | - | tuple to replace the contents of this tuple |
p | - | pair to replace the contents of this 2-tuple |
Return value
Exceptions
2) is_nothrow_move_assignable<T0>::value &&
is_nothrow_move_assignable<T1>::value &&
is_nothrow_move_assignable<T2>::value &&
...
3-5) Template:throw none
6)