std::basic_ios
From cppreference.com
| Defined in header <ios>
|
||
template<
class CharT,
class Traits = std::char_traits<CharT>
> class basic_ios
: public std::ios_base
|
||
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>
|
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
|
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) | |