std::queue<T,Container>::operator=
来自cppreference.com
<tbody>
</tbody>
queue& operator=( const queue& other ); |
(1) | (隐式声明) |
queue& operator=( queue&& other ); |
(2) | (C++11 起) (隐式声明) |
以给定实参的内容替换容器适配器的内容。
1) 复制赋值运算符。以
other 的内容副本替换内容。相当于调用 c = other.c;。2) 移动赋值运算符。用移动语义以
other 的内容替换内容。相当于调用 c = std::move(other.c);。参数
| other | - | 用作源的另一容器适配器 |
返回值
*this
复杂度
1,2) 等价于底层容器的
operator= 的复杂度。示例
| 本节未完成 原因:暂无示例 |
参阅
构造 queue (公开成员函数) |