std::basic_ios
From cppreference.com
Defined in header <ios>
|
||
template< class CharT, |
||
The class std::basic_ios
provides facilities for interfacing with objects that have std::basic_streambuf interface. Several std::basic_ios
objects can refer to one actual std::basic_streambuf
object.
Inheritance diagram
Several typedefs for common character types are provided:
Defined in header
<ios> | |
Type | Definition |
std::ios
|
std::basic_ios<char> |
std::wios
|
std::basic_ios<wchar_t> |
Contents |
[edit] 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
|
[edit] Public member functions
constructs the object (public member function) | |
[virtual] |
destructs the object (virtual public member function) |
operator= |
the copy assignment operator is deleted (public member function) |
State functions | |
checks if no error has occurred i.e. I/O operations are available (public member function) | |
checks if end-of-file has been reached (public member function) | |
checks if an error has occurred (public member function) | |
checks if a non-recoverable error has occurred (public member function) | |
checks if an error has occurred (synonym of fail()) (public member function) | |
checks if no error has occurred (synonym of ! fail()) (public member function) | |
returns state flags (public member function) | |
sets state flags (public member function) | |
modifies state flags (public member function) | |
Formatting | |
copies formatting information (public member function) | |
manages the fill character (public member function) | |
Miscellaneous | |
manages exception mask (public member function) | |
sets the locale (public member function) | |
manages associated stream buffer (public member function) | |
manages tied stream (public member function) | |
narrows characters (public member function) | |
widens characters (public member function) |
[edit] Protected member functions
initializes a default-constructed std::basic_ios (protected member function) | |
(C++11) |
moves from another std::basic_ios except for rdbuf (protected member function) |
(C++11) |
swaps with another std::basic_ios except for rdbuf (protected member function) |
replaces the rdbuf without clearing its error state (protected member function) |