Assignment operators
Synopses
Declared in <bslstl_pair.h>
Assign to this pair from the specified rhs pair.
template<
class PARAM_1,
class PARAM_2,
class = void>
requires std::is_assignable<T1&, const PARAM_1>::value
&& std::is_assignable<T2&, const PARAM_2>::value
constexpr
pair<T1, T2>&
operator=(pair<PARAM_1, PARAM_2> const& rhs);
Move‐assign to this pair the value of the specified rhs pair.
template<
class PARAM_1,
class PARAM_2>
constexpr
pair<T1, T2>&
operator=(pair<PARAM_1, PARAM_2>&& rhs);
Assign to this pair from the specified rhs std::pair.
template<
class PARAM_1,
class PARAM_2>
constexpr
pair<T1, T2>&
operator=(std::pair<PARAM_1, PARAM_2> const& rhs);
Return Value
reference offering modifiable access to this object
Parameters
Name |
Description |
rhs |
pair whose members are assigned to this pair's members |
Created with MrDocs