Difference between revisions of "cpp/io/basic ios"
From cppreference.com
m (Text replace - "io/tdcl" to "io/dcl") |
m (Text replace - "/sidebar" to "/navbar") |
||
Line 1: | Line 1: | ||
{{cpp/title|basic_ios}} | {{cpp/title|basic_ios}} | ||
− | {{cpp/io/basic_ios/ | + | {{cpp/io/basic_ios/navbar}} |
{{ddcl | header=ios | 1= | {{ddcl | header=ios | 1= | ||
template< | template< |
Revision as of 12:37, 15 June 2012
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
initializes a default-constructed std::basic_ios (protected member function) | |
moves from another std::basic_ios except for rdbuf (protected member function) | |
swaps with another std::basic_ios except for rdbuf (protected member function) |
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) |