pair& operator=( const pair& other ); | (1) | |
template< class U1, class U2 > pair& operator=( const pair<U1,U2>& other ); | (2) | |
pair& operator=( pair&& other ); | (3) | (since C++11) |
template< class U1, class U2 > pair& operator=( pair<U1,U2>&& other ); | (4) | (since C++11) |
Replaces the contents of the pair.
other.first
to first
and other.second
to second
other
using move semantics. other | - | pair of values to replace the contents of this pair |
*this
.
noexcept
specification: noexcept( is_nothrow_move_assignable<T1>::value && is_nothrow_move_assignable<T2>::value )
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/utility/pair/operator=