std::stack::operator=
来自cppreference.com
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
stack<T, Container>& operator=( const stack<T,Container>& other ); |
(1) | |
stack<T, Container>& operator=( stack<T,Container>&& other ); |
(2) | (C++11 起) |
替换的内容的容器适配器与那些
1) other
.原文:
Replaces the contents of the container adaptor with those of
other
.复制赋值操作者。与
2) other
的内容的副本的内容替换。有效地调用c = other.c;。 (隐式声明)原文:
Copy assignment operator. Replaces the contents with a copy of the contents of
other
. Effectively calls c = other.c;. (隐式声明)将赋值运算符。的
other
使用移动语义的内容替换。有效地调用c = std::move(other.c);(隐式声明)原文:
Move assignment operator. Replaces the contents with those of
other
using move semantics. Effectively calls c = std::move(other.c); (隐式声明)目录 |
[编辑] 参数
other | - | 另一个容器适配器被用作源
原文: another container adaptor to be used as source |
[编辑] 返回值
*this
[编辑] 复杂性
等效底层容器{{{1}}}.
原文:
Equivalent to that of {{{1}}} of the underlying container.
[编辑] 另请参阅
构建 stack (公共成员函数) |