Difference between revisions of "cpp/header/iosfwd"
From cppreference.com
D41D8CD98F (Talk | contribs) (→Forward declarations: std::basic_iostream is defined in the header <istream>, also + typedefs (see the synopsis)) |
(move synopsis to template) |
||
(10 intermediate revisions by 5 users not shown) | |||
Line 9: | Line 9: | ||
{{dsc| {{c|std::char_traits<char>}} | {{mark ptclass}} }} | {{dsc| {{c|std::char_traits<char>}} | {{mark ptclass}} }} | ||
{{dsc| {{c|std::char_traits<wchar_t>}} | {{mark ptclass}} }} | {{dsc| {{c|std::char_traits<wchar_t>}} | {{mark ptclass}} }} | ||
+ | {{dsc| {{c|std::char_traits<char8_t>}} {{mark c++20}} | {{mark ptclass}} }} | ||
{{dsc| {{c|std::char_traits<char16_t>}} {{mark c++11}} | {{mark ptclass}} }} | {{dsc| {{c|std::char_traits<char16_t>}} {{mark c++11}} | {{mark ptclass}} }} | ||
{{dsc| {{c|std::char_traits<char32_t>}} {{mark c++11}} | {{mark ptclass}} }} | {{dsc| {{c|std::char_traits<char32_t>}} {{mark c++11}} | {{mark ptclass}} }} | ||
Line 16: | Line 17: | ||
{{dsc header | ios}} | {{dsc header | ios}} | ||
− | {{dsc | + | {{dsc inc | cpp/io/dsc basic_ios}} |
− | {{dsc | + | {{dsc inc | cpp/io/dsc fpos}} |
{{dsc header | streambuf}} | {{dsc header | streambuf}} | ||
− | {{dsc | + | {{dsc inc | cpp/io/dsc basic_streambuf}} |
{{dsc header | ostream}} | {{dsc header | ostream}} | ||
− | {{dsc | + | {{dsc inc | cpp/io/dsc basic_ostream}} |
{{dsc header | istream}} | {{dsc header | istream}} | ||
− | {{dsc | + | {{dsc inc | cpp/io/dsc basic_istream}} |
− | {{dsc | + | {{dsc inc | cpp/io/dsc basic_iostream}} |
{{dsc header | fstream}} | {{dsc header | fstream}} | ||
− | {{dsc | + | {{dsc inc | cpp/io/dsc basic_filebuf}} |
− | {{dsc | + | {{dsc inc | cpp/io/dsc basic_ifstream}} |
− | {{dsc | + | {{dsc inc | cpp/io/dsc basic_ofstream}} |
− | {{dsc | + | {{dsc inc | cpp/io/dsc basic_fstream}} |
{{dsc header | sstream}} | {{dsc header | sstream}} | ||
− | {{dsc | + | {{dsc inc | cpp/io/dsc basic_stringbuf}} |
− | {{dsc | + | {{dsc inc | cpp/io/dsc basic_istringstream}} |
− | {{dsc | + | {{dsc inc | cpp/io/dsc basic_ostringstream}} |
− | {{dsc | + | {{dsc inc | cpp/io/dsc basic_stringstream}} |
+ | |||
+ | {{dsc header | syncstream}} | ||
+ | {{dsc inc | cpp/io/dsc basic_syncbuf}} | ||
+ | {{dsc inc | cpp/io/dsc basic_osyncstream}} | ||
+ | |||
+ | {{dsc header | spanstream}} | ||
+ | {{dsc inc | cpp/io/dsc basic_spanbuf}} | ||
+ | {{dsc inc | cpp/io/dsc basic_ispanstream}} | ||
+ | {{dsc inc | cpp/io/dsc basic_ospanstream}} | ||
+ | {{dsc inc | cpp/io/dsc basic_spanstream}} | ||
{{dsc header | strstream}} | {{dsc header | strstream}} | ||
− | {{dsc | + | {{dsc inc | cpp/io/dsc strstreambuf}} |
− | {{dsc | + | {{dsc inc | cpp/io/dsc istrstream}} |
− | {{dsc | + | {{dsc inc | cpp/io/dsc ostrstream}} |
− | {{dsc | + | {{dsc inc | cpp/io/dsc strstream}} |
{{dsc h1|Typedefs and specializations}} | {{dsc h1|Typedefs and specializations}} | ||
− | {{dsc | {{lc|std:: | + | {{dsc | {{lc|std::streampos}} | {{c|std::fpos<std::char_traits<char>::state_type>}}}} |
− | + | {{dsc | {{lc|std::wstreampos}} | {{c|std::fpos<std::char_traits<wchar_t>::state_type>}}}} | |
− | + | {{dsc | {{lc|std::u8streampos}} | {{c|std::fpos<std::char_traits<char8_t>::state_type>}}}} | |
− | + | {{dsc | {{lc|std::u16streampos}} | {{c|std::fpos<std::char_traits<char16_t>::state_type>}}}} | |
− | + | {{dsc | {{lc|std::u32streampos}} | {{c|std::fpos<std::char_traits<char32_t>::state_type>}}}} | |
− | {{dsc | {{lc|std:: | + | {{dsc | In addition, for each class template {{tt|std::basic_''T''}} declared in this header, {{tt|std::''T''}} and {{tt|std::w''T''}} are declared as a synonym of {{tt|std::basic_''T''<char>}} and {{tt|std::basic_''T''<wchar_t>}} respectively.}}<!--It will be a rather long list if all of them are shown, see http://en.cppreference.com/w/?oldid=72068 and the header synopsis below--> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | {{dsc | {{lc|std:: | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | {{dsc | {{lc|std:: | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | {{dsc | {{lc|std:: | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | {{dsc | {{ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | {{ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
{{dsc end}} | {{dsc end}} | ||
===Synopsis=== | ===Synopsis=== | ||
− | {{ | + | {{cpp/synopsis/iosfwd}} |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | }} | + | {{langlinks|es|ja|zh}} |
Latest revision as of 07:30, 27 November 2023
This header contains forward declarations for the Input/output library.
Forward declarations | |
Defined in header
<string> | |
std::char_traits | Class Template which describes properties of a character type (class template) |
std::char_traits<char> | (class template specialization) |
std::char_traits<wchar_t> | (class template specialization) |
std::char_traits<char8_t> (C++20) | (class template specialization) |
std::char_traits<char16_t> (C++11) | (class template specialization) |
std::char_traits<char32_t> (C++11) | (class template specialization) |
Defined in header
<memory> | |
the default allocator (class template) | |
Defined in header
<ios> | |
manages an arbitrary stream buffer (class template) | |
represents absolute position in a stream or a file (class template) | |
Defined in header
<streambuf> | |
abstracts a raw device (class template) | |
Defined in header
<ostream> | |
wraps a given abstract device (std::basic_streambuf) and provides high-level output interface (class template) | |
Defined in header
<istream> | |
wraps a given abstract device (std::basic_streambuf) and provides high-level input interface (class template) | |
wraps a given abstract device (std::basic_streambuf) and provides high-level input/output interface (class template) | |
Defined in header
<fstream> | |
implements raw file device (class template) | |
implements high-level file stream input operations (class template) | |
implements high-level file stream output operations (class template) | |
implements high-level file stream input/output operations (class template) | |
Defined in header
<sstream> | |
implements raw string device (class template) | |
implements high-level string stream input operations (class template) | |
implements high-level string stream output operations (class template) | |
implements high-level string stream input/output operations (class template) | |
Defined in header
<syncstream> | |
(C++20) |
synchronized output device wrapper (class template) |
(C++20) |
synchronized output stream wrapper (class template) |
Defined in header
<spanstream> | |
(C++23) |
implements raw fixed character buffer device (class template) |
(C++23) |
implements fixed character buffer input operations (class template) |
(C++23) |
implements fixed character buffer output operations (class template) |
(C++23) |
implements fixed character buffer input/output operations (class template) |
Defined in header
<strstream> | |
(deprecated in C++98)(removed in C++26) |
implements raw character array device (class) |
(deprecated in C++98)(removed in C++26) |
implements character array input operations (class) |
(deprecated in C++98)(removed in C++26) |
implements character array output operations (class) |
(deprecated in C++98)(removed in C++26) |
implements character array input/output operations (class) |
Typedefs and specializations | |
std::streampos | std::fpos<std::char_traits<char>::state_type> |
std::wstreampos | std::fpos<std::char_traits<wchar_t>::state_type> |
std::u8streampos | std::fpos<std::char_traits<char8_t>::state_type> |
std::u16streampos | std::fpos<std::char_traits<char16_t>::state_type> |
std::u32streampos | std::fpos<std::char_traits<char32_t>::state_type> |
In addition, for each class template std::basic_T declared in this header, std::T and std::wT are declared as a synonym of std::basic_T<char> and std::basic_T<wchar_t> respectively.
|
[edit] Synopsis
namespace std { template<class CharT> struct char_traits; template<> struct char_traits<char>; template<> struct char_traits<char8_t>; template<> struct char_traits<char16_t>; template<> struct char_traits<char32_t>; template<> struct char_traits<wchar_t>; template<class T> class allocator; template<class CharT, class Traits = char_traits<CharT>> class basic_ios; template<class CharT, class Traits = char_traits<CharT>> class basic_streambuf; template<class CharT, class Traits = char_traits<CharT>> class basic_istream; template<class CharT, class Traits = char_traits<CharT>> class basic_ostream; template<class CharT, class Traits = char_traits<CharT>> class basic_iostream; template<class CharT, class Traits = char_traits<CharT>, class Allocator = allocator<CharT>> class basic_stringbuf; template<class CharT, class Traits = char_traits<CharT>, class Allocator = allocator<CharT>> class basic_istringstream; template<class CharT, class Traits = char_traits<CharT>, class Allocator = allocator<CharT>> class basic_ostringstream; template<class CharT, class Traits = char_traits<CharT>, class Allocator = allocator<CharT>> class basic_stringstream; template<class CharT, class Traits = char_traits<CharT>> class basic_filebuf; template<class CharT, class Traits = char_traits<CharT>> class basic_ifstream; template<class CharT, class Traits = char_traits<CharT>> class basic_ofstream; template<class CharT, class Traits = char_traits<CharT>> class basic_fstream; template<class CharT, class Traits = char_traits<CharT>, class Allocator = allocator<CharT>> class basic_syncbuf; template<class CharT, class Traits = char_traits<CharT>, class Allocator = allocator<CharT>> class basic_osyncstream; template<class CharT, class Traits = char_traits<CharT>> class basic_spanbuf; template<class CharT, class Traits = char_traits<CharT>> class basic_ispanstream; template<class CharT, class Traits = char_traits<CharT>> class basic_ospanstream; template<class CharT, class Traits = char_traits<CharT>> class basic_spanstream; template<class CharT, class Traits = char_traits<CharT>> class istreambuf_iterator; template<class CharT, class Traits = char_traits<CharT>> class ostreambuf_iterator; using ios = basic_ios<char>; using wios = basic_ios<wchar_t>; using streambuf = basic_streambuf<char>; using istream = basic_istream<char>; using ostream = basic_ostream<char>; using iostream = basic_iostream<char>; using stringbuf = basic_stringbuf<char>; using istringstream = basic_istringstream<char>; using ostringstream = basic_ostringstream<char>; using stringstream = basic_stringstream<char>; using filebuf = basic_filebuf<char>; using ifstream = basic_ifstream<char>; using ofstream = basic_ofstream<char>; using fstream = basic_fstream<char>; using syncbuf = basic_syncbuf<char>; using osyncstream = basic_osyncstream<char>; using spanbuf = basic_spanbuf<char>; using ispanstream = basic_ispanstream<char>; using ospanstream = basic_ospanstream<char>; using spanstream = basic_spanstream<char>; using wstreambuf = basic_streambuf<wchar_t>; using wistream = basic_istream<wchar_t>; using wostream = basic_ostream<wchar_t>; using wiostream = basic_iostream<wchar_t>; using wstringbuf = basic_stringbuf<wchar_t>; using wistringstream = basic_istringstream<wchar_t>; using wostringstream = basic_ostringstream<wchar_t>; using wstringstream = basic_stringstream<wchar_t>; using wfilebuf = basic_filebuf<wchar_t>; using wifstream = basic_ifstream<wchar_t>; using wofstream = basic_ofstream<wchar_t>; using wfstream = basic_fstream<wchar_t>; using wsyncbuf = basic_syncbuf<wchar_t>; using wosyncstream = basic_osyncstream<wchar_t>; using wspanbuf = basic_spanbuf<wchar_t>; using wispanstream = basic_ispanstream<wchar_t>; using wospanstream = basic_ospanstream<wchar_t>; using wspanstream = basic_spanstream<wchar_t>; template<class State> class fpos; using streampos = fpos<char_traits<char>::state_type>; using wstreampos = fpos<char_traits<wchar_t>::state_type>; using u8streampos = fpos<char_traits<char8_t>::state_type>; using u16streampos = fpos<char_traits<char16_t>::state_type>; using u32streampos = fpos<char_traits<char32_t>::state_type>; } // deprecated namespace std { class strstreambuf; class istrstream; class ostrstream; class strstream; }