> class basic_streambuf; 类basic_streambuf 控制字符序列的输入与输出。它包含下列内容并提供到它们的访问: 受控制字符序列,又称为缓冲区,它可含有为输入操作缓冲的输入序列(又称为获取区),和/或为输出操作缓冲的输出序列(又称为放置区)。 关联字符序列,又称作源(对于输入)或池(对于输出)。它可以是通过 ...
operator>>(std::basic_istream) std::basic_filebuf std::basic_filebuf::basic_filebuf std::basic_filebuf::close std::basic_filebuf::imbue std::basic_filebuf::is_open std::basic_filebuf::open std::basic_filebuf::overflow std::basic_filebuf::pbackfail ...
operator>>(std::basic_istream) std::basic_filebuf std::basic_filebuf::basic_filebuf std::basic_filebuf::close std::basic_filebuf::imbue std::basic_filebuf::is_open std::basic_filebuf::open std::basic_filebuf::overflow std::basic_filebuf::pbackfail ...
I/O 流函数 basic_istream::putback 以此函数实现。 参数c - 要回放的字符 返回值若回放位置可用,则返回下一位置指针现在指向的字符,以 Traits::to_int_type(*gptr()) 转换为 int_type 。来自此 streambuf 的下个单字符输入将返回此字符。
I/O 流函数 basic_istream::putback 以此函数实现。 参数c - 要回放的字符 返回值若回放位置可用,则返回下一位置指针现在指向的字符,以 Traits::to_int_type(*gptr()) 转换为 int_type 。来自此 streambuf 的下个单字符输入将返回此字符。
std::basic_streambuf<CharT,Traits>::overflow protected: virtualint_type overflow(int_type ch=Traits::eof()); 此函数的目的是将字符从流缓冲区的放置区转移到关联字符序列。 正式而言,此函数确保放置区有至少一个字符的空间。基类版本始终会失败,只能在派生类中提供会成功的版本(见实现要求)。标准库提供了...
std::basic_streambuf<CharT,Traits>::eback, gptr, egptr char_type*eback()const; (1) char_type*gptr()const; (2) char_type*egptr()const; (3) 返回定义获取区的指针。 1) 返回指向获取区起始的指针。 2) 返回指向获取区中当前字符的指针(获取指针)。
std::streambufstd::basic_streambuf<char> std::wstreambufstd::basic_streambuf<wchar_t> Member types Member typeDefinition char_typeCharT traits_typeTraits; the program is ill-formed ifTraits::char_typeis notCharT. int_typeTraits::int_type ...
> class basic_streambuf; 类basic_streambuf 控制字符序列的输入与输出。它包含下列内容并提供到它们的访问: 受控制字符序列,又称为缓冲区,它可含有为输入操作缓冲的输入序列(又称为获取区),和/或为输出操作缓冲的输出序列(又称为放置区)。 关联字符序列,又称作源(对于输入)或池(对于输出)。它可以是通过操...
I/O 流函数 basic_istream::unget 以此函数实现。 参数 (无) 返回值 若回放位置可用,则返回下一位置指针现在指向的字符,以 Traits::to_int_type(*gptr()) 转换为 int_type 。来自此 streambuf 的下个单字符输入将返回此字符。 若回放位置不可用,则返回 pbackfail() 所返回者,在失败时为 Traits::eof...