std::basic_ios::set_rdbuf

来自cppreference.com
< cpp‎ | io‎ | basic ios

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_ofstreamstd::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 -
关联到流缓存器
原文:
stream buffer to associate to
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

[编辑] 返回值

(无)
原文:
(none)
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

[编辑] 例外

(无)
原文:
(none)
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

[编辑] 示例

[编辑] 另请参阅

管理相关的流缓冲区
(公开成员函数) [编辑]