std::basic_ios::set_rdbuf
来自cppreference.com
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
protected: void set_rdbuf( std::basic_streambuf<CharT,Traits>* sb ); |
||
不清除其错误状态设置关联的流缓冲到
sb
.原文:
Sets the associated stream buffer to
sb
without clearing its error state.这个成员函数是被保护的,它被称为move构造函数的派生如流std::basic_ofstream或std::basic_istringstream,施工后的基类和移动流缓冲区后的最后一步:只有最派生Stream类知道如何正确地移动流缓冲区,但std::basic_ios需要知道流中的新位置,以便其公共成员函数可以访问它的.
原文:
This member function is protected: it is called by the move constructors of the derived streams such as std::basic_ofstream or std::basic_istringstream, as the final step after constructing the base class and after moving the stream buffer: only the most derived stream class knows how to correctly move the stream buffer, but std::basic_ios needs to be made aware of the stream's new location so that its public member functions can access it.
目录 |
[编辑] 参数
sb | - | 关联到流缓存器
|
[编辑] 返回值
(无)
[编辑] 例外
(无)
[编辑] 示例
本章尚未完成 原因:暂无示例 |
[编辑] 另请参阅
管理相关的流缓冲 (公共成员函数) |