std::wistream (3) - Linux Manuals
std::wistream: std::basic_istream
NAME
std::basic_istream - std::basic_istream
Synopsis
Defined in header <istream>
template<
class CharT,
class Traits = std::char_traits<CharT>
> class basic_istream : virtual public std::basic_ios<CharT, Traits>
The class template basic_istream provides support for high level input operations on character streams. The supported operations include formatted input (e.g. integer values or whitespace-separated characters and characters strings) and unformatted input (e.g. raw characters and character arrays). This functionality is implemented in terms of the interface provided by the underlying basic_streambuf class, accessed through the basic_ios base class. The only non-inherited data member of basic_istream, in most implementations, is the value returned by basic_istream::gcount().
std-basic istream-inheritance.svg
Inheritance diagram
Two specializations for common character types are defined:
Defined in header <istream>
Type Definition
istream basic_istream<char>
wistream basic_istream<wchar_t>
Global objects
Two global basic_istream objects are provided by the standard library.
Defined in header <iostream>
cin (global object)
wcin
Member types
Member type Definition
char_type CharT
traits_type Traits; the program is ill-formed if Traits::char_type is not CharT.
int_type Traits::int_type
pos_type Traits::pos_type
off_type Traits::off_type
Member functions
constructor (public member function)
destructor destructs the object
[virtual]
operator= move-assigns from another basic_istream
(C++11)
Formatted input
operator>> (public member function)
Unformatted input
get (public member function)
peek (public member function)
unget (public member function)
putback (public member function)
getline (public member function)
ignore (public member function)
read (public member function)
readsome (public member function)
gcount (public member function)
Positioning
tellg (public member function)
seekg (public member function)
Miscellaneous
sync (public member function)
swap swaps stream objects, except for the associated buffer
(C++11)
Member classes
sentry (public member class)
Non-member functions