Standard library header - cppreference.com (original) (raw)

This header contains forward declarations for the Input/output library.

Forward declarations
Defined in header
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
allocator the default allocator (class template) [edit]
Defined in header
basic_ios manages an arbitrary stream buffer (class template) [edit]
fpos represents absolute position in a stream or a file (class template) [edit]
Defined in header
basic_streambuf abstracts a raw device (class template) [edit]
Defined in header
basic_ostream wraps a given abstract device (std::basic_streambuf)and provides high-level output interface (class template) [edit]
Defined in header
basic_istream wraps a given abstract device (std::basic_streambuf)and provides high-level input interface (class template) [edit]
basic_iostream wraps a given abstract device (std::basic_streambuf)and provides high-level input/output interface (class template) [edit]
Defined in header
basic_filebuf implements raw file device (class template) [edit]
basic_ifstream implements high-level file stream input operations (class template) [edit]
basic_ofstream implements high-level file stream output operations (class template) [edit]
basic_fstream implements high-level file stream input/output operations (class template) [edit]
Defined in header
basic_stringbuf implements raw string device (class template) [edit]
basic_istringstream implements high-level string stream input operations (class template) [edit]
basic_ostringstream implements high-level string stream output operations (class template) [edit]
basic_stringstream implements high-level string stream input/output operations (class template) [edit]
Defined in header
basic_syncbuf(C++20) synchronized output device wrapper (class template) [edit]
basic_osyncstream(C++20) synchronized output stream wrapper (class template) [edit]
Defined in header
basic_spanbuf(C++23) implements raw fixed character buffer device (class template) [edit]
basic_ispanstream(C++23) implements fixed character buffer input operations (class template) [edit]
basic_ospanstream(C++23) implements fixed character buffer output operations (class template) [edit]
basic_spanstream(C++23) implements fixed character buffer input/output operations (class template) [edit]
Defined in header
strstreambuf(deprecated in C++98)(removed in C++26) implements raw character array device (class) [edit]
istrstream(deprecated in C++98)(removed in C++26) implements character array input operations (class) [edit]
ostrstream(deprecated in C++98)(removed in C++26) implements character array output operations (class) [edit]
strstream(deprecated in C++98)(removed in C++26) implements character array input/output operations (class) [edit]
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::w_T_ are declared as a synonym of std::basic_ T and std::basic_ T<wchar_t> respectively.

[edit] Synopsis

namespace std { template struct char_traits; template<> struct char_traits; template<> struct char_traits; template<> struct char_traits; template<> struct char_traits; template<> struct char_traits;   template class allocator;   template<class CharT, class Traits = char_traits> class basic_ios; template<class CharT, class Traits = char_traits> class basic_streambuf; template<class CharT, class Traits = char_traits> class basic_istream; template<class CharT, class Traits = char_traits> class basic_ostream; template<class CharT, class Traits = char_traits> class basic_iostream;   template<class CharT, class Traits = char_traits, class Allocator = allocator> class basic_stringbuf; template<class CharT, class Traits = char_traits, class Allocator = allocator> class basic_istringstream; template<class CharT, class Traits = char_traits, class Allocator = allocator> class basic_ostringstream; template<class CharT, class Traits = char_traits, class Allocator = allocator> class basic_stringstream;   template<class CharT, class Traits = char_traits> class basic_filebuf; template<class CharT, class Traits = char_traits> class basic_ifstream; template<class CharT, class Traits = char_traits> class basic_ofstream; template<class CharT, class Traits = char_traits> class basic_fstream;   template<class CharT, class Traits = char_traits, class Allocator = allocator> class basic_syncbuf; template<class CharT, class Traits = char_traits, class Allocator = allocator> class basic_osyncstream;   template<class CharT, class Traits = char_traits> class basic_spanbuf; template<class CharT, class Traits = char_traits> class basic_ispanstream; template<class CharT, class Traits = char_traits> class basic_ospanstream; template<class CharT, class Traits = char_traits> class basic_spanstream;   template<class CharT, class Traits = char_traits> class istreambuf_iterator; template<class CharT, class Traits = char_traits> class ostreambuf_iterator;   using ios = basic_ios; using wios = basic_ios;   using streambuf = basic_streambuf; using istream = basic_istream; using ostream = basic_ostream; using iostream = basic_iostream;   using stringbuf = basic_stringbuf; using istringstream = basic_istringstream; using ostringstream = basic_ostringstream; using stringstream = basic_stringstream;   using filebuf = basic_filebuf; using ifstream = basic_ifstream; using ofstream = basic_ofstream; using fstream = basic_fstream;   using syncbuf = basic_syncbuf; using osyncstream = basic_osyncstream;   using spanbuf = basic_spanbuf; using ispanstream = basic_ispanstream; using ospanstream = basic_ospanstream; using spanstream = basic_spanstream;   using wstreambuf = basic_streambuf; using wistream = basic_istream; using wostream = basic_ostream; using wiostream = basic_iostream;   using wstringbuf = basic_stringbuf; using wistringstream = basic_istringstream; using wostringstream = basic_ostringstream; using wstringstream = basic_stringstream;   using wfilebuf = basic_filebuf; using wifstream = basic_ifstream; using wofstream = basic_ofstream; using wfstream = basic_fstream;   using wsyncbuf = basic_syncbuf; using wosyncstream = basic_osyncstream;   using wspanbuf = basic_spanbuf; using wispanstream = basic_ispanstream; using wospanstream = basic_ospanstream; using wspanstream = basic_spanstream;   template class fpos; using streampos = fpos<char_traits::state_type>; using wstreampos = fpos<char_traits::state_type>; using u8streampos = fpos<char_traits::state_type>; using u16streampos = fpos<char_traits::state_type>; using u32streampos = fpos<char_traits::state_type>; }   // deprecated namespace std { class strstreambuf; class istrstream; class ostrstream; class strstream; }