std::basic_iostream (3) - Linux Manuals
std::basic_iostream: std::basic_iostream
NAME
std::basic_iostream - std::basic_iostream
Synopsis
Defined in header <istream>
template<
class CharT,
class Traits = std::char_traits<CharT>
> class basic_iostream;
The class template basic_iostream provides support for high level input/output operations on streams. The supported operations include sequential reading or writing and formatting. This functionality is implemented over the interface provided by the basic_streambuf class. It is accessed through basic_ios class.
std-basic iostream-inheritance.svg
Inheritance diagram
Two specializations for common character types are defined:
Defined in header <istream>
Type Definition
iostream basic_iostream<char>
wiostream basic_iostream<wchar_t>
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]
Protected member functions
operator= move-assigns another basic_iostream
(C++11)
swap exchanges the state with another basic_iostream
(C++11)
Inherited from std::basic_istream
Member functions
Formatted input
operator>> (public member function of std::basic_istream<CharT,Traits>)
Unformatted input
get (public member function of std::basic_istream<CharT,Traits>)
peek (public member function of std::basic_istream<CharT,Traits>)
unget (public member function of std::basic_istream<CharT,Traits>)
putback (public member function of std::basic_istream<CharT,Traits>)
getline (public member function of std::basic_istream<CharT,Traits>)
ignore (public member function of std::basic_istream<CharT,Traits>)
read (public member function of std::basic_istream<CharT,Traits>)
readsome (public member function of std::basic_istream<CharT,Traits>)
gcount (public member function of std::basic_istream<CharT,Traits>)
Positioning
tellg (public member function of std::basic_istream<CharT,Traits>)
seekg (public member function of std::basic_istream<CharT,Traits>)
Miscellaneous
sync (public member function of std::basic_istream<CharT,Traits>)
Member classes
sentry (public member class of std::basic_istream<CharT,Traits>)
Inherited from std::basic_ostream
Member functions
Formatted output
operator<< (public member function of std::basic_ostream<CharT,Traits>)
Unformatted output
put (public member function of std::basic_ostream<CharT,Traits>)
write (public member function of std::basic_ostream<CharT,Traits>)
Positioning
tellp (public member function of std::basic_ostream<CharT,Traits>)
seekp (public member function of std::basic_ostream<CharT,Traits>)
Miscellaneous