类模板basic_iostream支持流上的高级别输入/输出操作。支持的操作包括顺序读写和格式化。此功能是通过接口实现的,该接口由basic_streambuf上课。它是通过basic_ios上课。 二次 二次 继承图 定义了两种常见字符类型的专门化: 在标头中定义 *。 类型定义 碘...
WOREAMBASIC[医]<wchar[医]T> 全局对象 六全局基础[医]ostream对象由标准库提供。 在标头中定义<iostream> *。 向标准C输出流stdout%28全局对象%29写入 cerrwcerr写入标准C错误流stderr,未缓冲%28全局对象%29 写入标准C错误流stderr%28全局对象%29 ...
类模板 basic_iostream 提供流上的高层输入/输出支持。受支持操作包含读或写及格式化。此功能为 basic_streambuf 类所提供,在接口上实现。通过 basic_ios 类访问缓冲区。 继承图 为常用字符类型定义二个特化: 定义于头文件 类型 定义 iostream basic_iostream<char> wiostream basic_iostream<wchar_t> 成员类...
publicbasic_istream<CharT, Traits>, publicbasic_ostream<CharT, Traits> 类模板basic_iostream提供在流上进行高层输入/输出支持。受支持操作包含按顺序的读或写及格式化。此功能在std::basic_streambuf类提供的接口上实现。通过std::basic_ios类访问缓冲区。
class template std::basic_istream<> 和 class template std::basic_ostream<>都以virtual的方式继承自std::basic_ios分别定义出读写的对象。 class template std::basic_iostream<>派生(多重继承)自std::basic_istream和std::basic_ostream,用来将流中数据读取/写入到既可以读又可以写的对象。
类模板basic_fstream实现基于文件的流上的高层输入/输出。它将std::basic_iostream的高层接口赋予基于文件的缓冲(std::basic_filebuf)。 std::basic_fstream的典型实现只保有一个非派生数据成员:std::basic_filebuf<CharT, Traits>的一个实例。 继承图
basic_iostream::operator= basic_iostream::swap This member function is protected: it is called by the swap member functions of the derived stream classesstd::basic_stringstreamandstd::basic_fstream, which know how to correctly swap the associated stream buffers. ...
<cpp |io |basic ostream Writes uncommitted changes to the underlying output sequence. Behaves as anUnformattedOutputFunction. Ifrdbuf()is a null pointer, the sentry object is not constructed. Otherwise, after constructing and checking the sentry object, callsrdbuf()->pubsync(). If the ...
typedef basic_streambuf<char> streambuf; typedef basic_istream<char> istream; typedef basic_ostream<char> ostream; typedef basic_iostream<char> iostream; ... template <class _CharT, class _Traits> class _LIBCPP_TEMPLATE_VIS basic_istream : virtual public basic_ios<_CharT, _Traits> { .....
std::basic_ios::set_rdbuf std::basic_ios::swap std::basic_ios::tie std::basic_ios::widen std::basic_iostream std::basic_iostream::basic_iostream std::basic_iostream::swap std::basic_istream std::basic_istream::basic_istream