/
cppreference.com
< cpp
/
/ / . , ( , ) / .
. (char and wchar_t) typedef .
:
Inheritance diagram
Abstraction | |
<ios> . | |
| / (class) | |
| (class template) | |
<streambuf> . | |
| raw device (class template) | |
<ostream> . | |
| (std::basic_streambuf) (class template) | |
<istream> . | |
| (std::basic_streambuf) (class template) | |
| (std::basic_streambuf) / (class template) | |
File I/O implementation | |
<fstream> . | |
| raw (device) (class template) | |
| (class template) | |
| (class template) | |
| / (class template) | |
String I/O implementation | |
<sstream> . | |
| raw (string device) (class template) | |
| (class template) | |
| (class template) | |
| / (class template) | |
Array I/O implementations | |
<spanstream> . | |
(C++23) |
raw (class template) |
(C++23) |
(class template) |
(C++23) |
(class template) |
(C++23) |
/ (class template) |
<strstream> . | |
(deprecated in C++98) |
raw (class) |
(deprecated in C++98) |
(class) |
(deprecated in C++98) |
(class) |
(deprecated in C++98) |
/ (class) |
Synchronized output | |
<syncstream> . | |
(C++20) |
wrapper (class template) |
(C++20) |
wrapper (class template) |
Typedefs
typedef .:
typedef basic_ios<char> ios;
typedef basic_ios<wchar_t> wios;
typedef basic_streambuf<char> streambuf;
typedef basic_streambuf<wchar_t> wstreambuf;
typedef basic_filebuf<char> filebuf;
typedef basic_filebuf<wchar_t> wfilebuf;
typedef basic_stringbuf<char> stringbuf;
typedef basic_stringbuf<wchar_t> wstringbuf;
typedef basic_syncbuf<char> syncbuf; // C++20
typedef basic_syncbuf<wchar_t> wsyncbuf; // C++20
typedef basic_spanbuf<char> spanbuf; // C++23
typedef basic_spanbuf<wchar_t> wspanbuf; // C++23
typedef basic_istream<char> istream;
typedef basic_istream<wchar_t> wistream;
typedef basic_ostream<char> ostream;
typedef basic_ostream<wchar_t> wostream;
typedef basic_iostream<char> iostream;
typedef basic_iostream<wchar_t> wiostream;
typedef basic_ifstream<char> ifstream;
typedef basic_ifstream<wchar_t> wifstream;
typedef basic_ofstream<char> ofstream;
typedef basic_ofstream<wchar_t> wofstream;
typedef basic_fstream<char> fstream;
typedef basic_fstream<wchar_t> wfstream;
typedef basic_istringstream<char> istringstream;
typedef basic_istringstream<wchar_t> wistringstream;
typedef basic_ostringstream<char> ostringstream;
typedef basic_ostringstream<wchar_t> wostringstream;
typedef basic_stringstream<char> stringstream;
typedef basic_stringstream<wchar_t> wstringstream;
typedef basic_osyncstream<char> osyncstream; // C++20
typedef basic_osyncstream<wchar_t> wosyncstream; // C++20
typedef basic_ispanstream<char> ispanstream; // C++23
typedef basic_ispanstream<wchar_t> wispanstream; // C++23
typedef basic_ospanstream<char> ospanstream; // C++23
typedef basic_ospanstream<wchar_t> wospanstream; // C++23
typedef basic_spanstream<char> spanstream; // C++23
typedef basic_spanstream<wchar_t> wspanstream; // C++23
Predefined standard stream objects
<iostream> . | |
| reads from the standard C input stream stdin (global object) | |
| writes to the standard C output stream stdout (global object) | |
| writes to the standard C error stream stderr, unbuffered (global object) | |
| writes to the standard C error stream stderr (global object) | |
I/O (Manipulator)
/ I/O (Manipulator) (e.g. std::boolalpha, std::hex, .)
Types
.
<ios> . | |
| / (fpos ) (typedef) | |
| / / (typedef) | |
| (class template) | |
std::fpos<std::mbstate_t> typedef .
<iosfwd> . | |
| Type | Definition |
streampos
|
std::fpos<std::char_traits<char>::state_type>
|
wstreampos
|
std::fpos<std::char_traits<wchar_t>::state_type>
|
u8streampos (C++20)
|
std::fpos<std::char_traits<char8_t>::state_type>
|
u16streampos (C++11)
|
std::fpos<std::char_traits<char16_t>::state_type>
|
u32streampos (C++11)
|
std::fpos<std::char_traits<char32_t>::state_type>
|
Error category interface
<ios> . | |
(C++11) |
the IO stream error codes (enum) |
(C++11) |
identifies the iostream error category (function) |
C-style I/O
C++ std::fopen, std::getc C /