[ Web Proxy ]
URL:
Viewing: https://ko.cppreference.com/cpp/io [Back]  [Original]

/ - cppreference.com
cppreference.com

/

cppreference.com
< cpp

C++ 2 / : / C /

/

/ / . , ( , ) / .


. (char and wchar_t) typedef . :

std-io-complete-inheritance.svg [std-io-complete-inheritance.svg]

Inheritance diagram

Abstraction
<ios> .
/
(class) [edit]

(class template) [edit]
<streambuf> .
raw device
(class template) [edit]
<ostream> .
(std::basic_streambuf)

(class template) [edit]
<istream> .
(std::basic_streambuf)

(class template) [edit]
(std::basic_streambuf)
/
(class template) [edit]
File I/O implementation
<fstream> .
raw (device)
(class template) [edit]

(class template) [edit]

(class template) [edit]
/
(class template) [edit]
String I/O implementation
<sstream> .
raw (string device)
(class template) [edit]

(class template) [edit]

(class template) [edit]
/
(class template) [edit]
Array I/O implementations
<spanstream> .
raw
(class template) [edit]

(class template) [edit]

(class template) [edit]
/
(class template) [edit]
<strstream> .
(deprecated in C++98)
raw
(class) [edit]
(deprecated in C++98)

(class) [edit]
(deprecated in C++98)

(class) [edit]
(deprecated in C++98)
/
(class) [edit]
Synchronized output
<syncstream> .
wrapper
(class template) [edit]
wrapper
(class template) [edit]

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) [edit]
writes to the standard C output stream stdout
(global object) [edit]
writes to the standard C error stream stderr, unbuffered
(global object) [edit]
writes to the standard C error stream stderr
(global object) [edit]

I/O (Manipulator)

/ I/O (Manipulator) (e.g. std::boolalpha, std::hex, .)

Types

.

<ios> .
/ (fpos )
(typedef) [edit]
/ /
(typedef) [edit]

(class template) [edit]

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) [edit]
identifies the iostream error category
(function) [edit]

C-style I/O

C++ std::fopen, std::getc C /


Web Proxy Viewer  |  New URL  |  Original Page