std::basic_iostream<CharT,Traits>::operator=
来自cppreference.com
< cpp | io | basic iostream
输入/输出库
std::basic_iostream
成员函数 | ||||
受保护成员函数 | ||||
basic_iostream::operator=
|
||||
basic_iostream&
operator=(
const
basic_iostream&
other )
=
delete;
|
(1) | |
protected:
basic_iostream& operator=( basic_iostream&& other ); |
(2) | (C++11 起) |
赋值另一流对象。
1) 不允许复制赋值。
2) 移动赋值另一流对象。等效地调用 swap(rhs)
。此移动赋值运算符受保护:它为导出流类 std::basic_stringstream
和 std::basic_fstream
的移动赋值运算符所调用,这些运算符知晓如何正确地移动赋值关联的流缓冲。
参数
other | - | 要赋值其状态的另一流 |
返回值
*this
参阅
构造对象 (公开成员函数) |