Namespaces
Variants

std::basic_istringstream:: operator=

From cppreference.net
basic_istringstream & operator = ( basic_istringstream && other ) ;
(自 C++11 起)

将字符串流 other 移动赋值给 * this ,实际上同时移动赋值了 std::basic_istream 基类和关联的 std::basic_stringbuf

请注意,基类的移动赋值操作会交换 *this other 之间所有的流状态变量(除 rdbuf 外)。

目录

参数

其他 - 要移动来源的字符串流

返回值

* this

示例

参见

(C++11)
交换两个字符串流
(公开成员函数)
(C++11)
赋值 basic_stringbuf 对象
( std::basic_stringbuf<CharT,Traits,Allocator> 的公开成员函数)
(C++11)
从另一个 basic_istream 移动赋值
(受保护成员函数)