basic_istream&read(char_type*s,std::streamsizecount); 从流提取字符。 表现为无格式输入函数(UnformattedInputFunction)。构造并检查 sentry 对象后,提取字符并将它们存储到以s指向其首元素的字符数组中的相继位置。提取并存储字符,直至出现任何下列条件: ...
basic_istream&seekg(pos_type pos); (1) basic_istream&seekg(off_type off,std::ios_base::seekdirdir); (2) 设置当前关联streambuf对象的输入位置指示器。 在进行其他任何操作前,seekg都会清除eofbit。(C++11 起) seekg表现为无格式输入函数(UnformattedInputFunction),但不影响gcount()。在构造并检查 sentr...
std::basic_istream Defined in header<istream> template< classCharT, classTraits=std::char_traits<CharT> >classbasic_istream:virtualpublicstd::basic_ios<CharT, Traits> The class templatebasic_istreamprovides support for high level input operations on character streams. The supported operations inclu...
basic_istream&get(char_type*s,std::streamsizecount); (3) basic_istream&get(char_type*s,std::streamsizecount, char_type delim); (4) basic_istream&get(basic_streambuf&strbuf); (5) basic_istream&get(basic_streambuf&strbuf, char_type delim); ...
std::basic_streambuf std::basic_filebuf std::basic_stringbuf 输入/输出操纵符 std::strstreambuf std::basic_syncbuf std::basic_ios std::basic_istream std::ios_base std::basic_osyncstream std::basic_istream<CharT,Traits>::operator>> std::basic_ostream std::basic_iostream std::basic_if...
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 ...
basic_istream& unget(); 使最近提取的字符再次可用。 First clears eofbit. (since C++11) 然后,该函数表现为UnformattedInputFunction.在构造和检查哨兵对象(如果有的话)之后ios_base::iostate设置标志,则设置函数集。failbit然后回来。否则,打电话rdbuf()->sungetc()... ...
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 ...
basic_istream&read(char_type*s,std::streamsizecount); Extracts characters from stream. Behaves asUnformattedInputFunction. After constructing and checking the sentry object, extracts characters and stores them into successive locations of the character array whose first element is pointed to bys. Chara...
basic_istream& operator>>( std::basic_streambuf<CharT,Traits>* sb ); (11) 从输入流释出值。 1-4) 释出整数值,潜在地跳过前导空格。存储值到给定的引用 value。此函数表现为有格式输入函数 (FormattedInputFunction) 。构造并检查 sentry 对象,可能跳过前导空格后,通过调用 std::num_get::get() 释...