std::basic_ios (3) - Linux Manuals
std::basic_ios: std::basic_ios
NAME
std::basic_ios - std::basic_ios
Synopsis
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.
std-basic ios-inheritance.svg
Inheritance diagram
Two specializations for common character types are also provided:
Type Definition
ios basic_ios<char>
wios 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
constructor (public member function)
destructor destructs the object
[virtual]
operator= (public member function)
State functions
good (public member function)
eof (public member function)
fail (public member function)
bad (public member function)
operator! (public member function)
operator_void*
operator_bool checks if no error has occurred (synonym of !fail())
(until C++11)
(since C++11)
rdstate (public member function)
setstate (public member function)
clear (public member function)
Formatting
copyfmt (public member function)
fill (public member function)
Miscellaneous
exceptions (public member function)
imbue (public member function)
rdbuf (public member function)