Unformatted Input Functions
All the unformatted input functions have some common behavior. Each starts by constructing a temporary object of type std::basic_istream::sentry with the second argument (noskipws) set to true. This has several effects, concluding with the setting of a status flag; see the sentry documentation for more.
If the sentry status is good, the function tries to extract whatever data is appropriate for the type of the argument.
The number of characters extracted is stored for later retrieval by gcount().
If an exception is thrown during extraction, ios_base::badbit will be turned on in the stream's error state without causing an ios_base::failure to be thrown. The original exception will then be rethrown.
* __istream_type & get (__streambuf_type &__sb)
* __istream_type & get (__streambuf_type &__sb, char_type __delim)
* __istream_type & get (char_type *__s, streamsize __n)
* __istream_type & get (char_type *__s, streamsize __n, char_type __delim)
* __istream_type & get (char_type &__c)
* int_type get ()
* __istream_type & getline (char_type *__s, streamsize __n)
* __istream_type & getline (char_type *__s, streamsize __n, char_type __delim)
* __istream_type & ignore (streamsize __n, int_type __delim)
* __istream_type & ignore (streamsize __n)
* __istream_type & ignore ()
* int_type peek ()
* __istream_type & putback (char_type __c)
* __istream_type & read (char_type *__s, streamsize __n)
* streamsize readsome (char_type *__s, streamsize __n)
* __istream_type & seekg (off_type, ios_base::seekdir)
* __istream_type & seekg (pos_type)
* int sync ()
* pos_type tellg ()
* __istream_type & unget ()
* operator void * () const
* bool operator! () const
Partager