| I/O manipulators | ||||
| Print functions(C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++20) | ||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
| Synchronized Output | ||||
(C++20) | ||||
| Types | ||||
| Error category interface | ||||
(C++11) | ||||
(C++11) |
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
protected: basic_streambuf(); | (1) | |
protected: basic_streambuf(const basic_streambuf& rhs); | (2) | (since C++11) |
basic_streambuf object, initializes the six pointer members (eback(),gptr(),egptr(),pbase(),pptr(), andepptr()) to null pointer values, and the locale member tostd::locale(), a copy of the global C++ locale at the time of construction.Both constructors are protected, and are only called by the concrete streambuf classes, such asstd::basic_filebuf,std::basic_stringbuf, orstd::strstreambuf.
Contents |
| rhs | - | a streambuf object to copy |
Until C++11, it was unspecified whetherbasic_streambuf or any of its derived classes isCopyConstructible (LWG issue 421), and different C++ library implementations provided different options.
| This section is incomplete Reason: no example |
constructs abasic_filebuf object(public member function of std::basic_filebuf<CharT,Traits>)[edit] | |
constructs abasic_stringbuf object(public member function of std::basic_stringbuf<CharT,Traits,Allocator>)[edit] | |
constructs astrstreambuf object(public member function of std::strstreambuf)[edit] |