Namespaces
Variants

std::basic_ios

From cppreference.com
< cpp | io
 
 
 
 
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.

cpp/io/ios base

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[edit]
traits_type Traits; the program is ill-formed if Traits::char_type is not CharT.[edit]
int_type Traits::int_type[edit]
pos_type Traits::pos_type[edit]
off_type Traits::off_type[edit]

Public member functions

constructs the object
(public member function) [edit]
[virtual]
destructs the object
(virtual public member function) [edit]
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) [edit]
checks if end-of-file has been reached
(public member function) [edit]
checks if an error has occurred
(public member function)