Difference between revisions of "cpp/io/basic ios"
From cppreference.com
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
|||
Line 5: | Line 5: | ||
class CharT, | class CharT, | ||
class Traits = std::char_traits<CharT> | class Traits = std::char_traits<CharT> | ||
− | > class basic_ios | + | > class basic_ios : public ios_base |
}} | }} | ||
Revision as of 19:54, 16 April 2013
Defined in header <ios>
|
||
template< class CharT, |
||
The class basic_ios
provides facilities for interfacing with objects that have basic_streambuf
interface. Several basic_ios
objects can refer to one actual basic_streambuf
object. Character type dependent formatting flags and error state is stored in basic_ios
class.
Inheritance diagram
Two specializations for common character types are also provided:
Type | Definition |
ios
|
basic_ios<char> |
wios
|
basic_ios<wchar_t> |
Contents |
Member types
Member type | Definition |
Public member functions
Protected member functions
Inherited from std::ios_base
Member functions
Formatting | |
manages format flags (public member function of std::ios_base )
| |
sets specific format flag (public member function of std::ios_base )
| |
clears specific format flag (public member function of std::ios_base )
| |
manages decimal precision of floating point operations (public member function of std::ios_base )
| |
manages field width (public member function of std::ios_base )
| |
Locales | |
sets locale (public member function of std::ios_base )
| |
returns current locale (public member function of std::ios_base )
| |
Internal extensible array | |
[static] |
returns a program-wide unique integer that is safe to use as index to pword() and iword() (public static member function of std::ios_base )
|
resizes the private storage if necessary and access to the long element at the given index (public member function of std::ios_base )
| |
resizes the private storage if necessary and access to the void* element at the given index (public member function of std::ios_base )
| |
Miscellaneous | |
registers event callback function (public member function of std::ios_base )
| |
[static] |
sets whether C++ and C I/O libraries are interoperable (public static member function of std::ios_base )
|
Member classes | |
stream exception (public member class of std::ios_base )
| |
initializes standard stream objects (public member class of std::ios_base )
|
Member types and constants | |||||||||||||||||||||||||||||||||||||||
Type | Explanation | ||||||||||||||||||||||||||||||||||||||
stream open mode type
The following constants are also defined:
(typedef) | |||||||||||||||||||||||||||||||||||||||
formatting flags type
The following constants are also defined:
(typedef) | |||||||||||||||||||||||||||||||||||||||
state of the stream type
The following constants are also defined:
(typedef) | |||||||||||||||||||||||||||||||||||||||
seeking direction type
The following constants are also defined:
(typedef) | |||||||||||||||||||||||||||||||||||||||
specifies event type (enum) | |||||||||||||||||||||||||||||||||||||||
callback function type (typedef) |