std::pair::operator=
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| pair& operator=( const pair& other ); |
(1) | |
| template< class U1, class U2 > pair& operator=( const pair<U1,U2>& other ); |
(2) | |
| pair& operator=( pair&& other ); |
(3) | (C++11 起) |
| template< class U1, class U2 > pair& operator=( pair<U1,U2>&& other ); |
(4) | (C++11 起) |
该对中的内容替换.
1) 复制赋值操作者。替换的内容与其他内容的副本.
2) 原文:
Copy assignment operator. Replaces the contents with a copy of the contents of other.
受让人
3) other.firstfirst和other.second到second原文:
Assigns
other.first to first and other.second to second将赋值运算符。的
4)
other使用移动语义的内容替换. 原文:
Move assignment operator. Replaces the contents with those of
other using move semantics. 目录 |
[编辑] 参数
| other | - | 对值这对中的内容替换
原文: pair of values to replace the contents of this pair |
[编辑] 返回值
*this
[编辑] 例外
1-2)(无)
3)noexcept specification: (C++11 起)
4) | noexcept(noexcept( is_nothrow_move_assignable<T1>::value && |
||
(无)
[编辑] 示例
| 本章尚未完成 原因:暂无示例 |