std::basic_streambuf<CharT,Traits>::basic_streambuf
From cppreference.com
 
 
 < cpp | io | basic streambuf 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Input/output library 
 
 
 
 
 
 
 
 
 
 
 
 
 Print functions (C++23)
 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)
std::basic_streambuf 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 Public member functions
 Locales
 Positioning
 Get area
 Put area
 Putback
 Protected member functions
basic_streambuf::basic_streambuf
(C++11)
(C++11)
 Locales
 Positioning
 Get area
 Put area
 Putback
protected:
basic_streambuf();
 (1) 
 
basic_streambuf();
protected:
basic_streambuf(const basic_streambuf& rhs);
 (2) 
 (since C++11) 
basic_streambuf(const basic_streambuf& rhs);
1) Constructs the 
basic_streambuf object, initializes the six pointer members (eback(), gptr(), egptr(), pbase(), pptr(), and epptr()) to null pointer values, and the locale member to std::locale (), a copy of the global C++ locale at the time of construction.2) Constructs a copy of rhs, initializing the six pointers and the locale object with the copies of the values held by rhs. Note that this is a shallow copy: the pointers of the newly-constructed basic_streambuf are pointing into the same character array as the pointers of rhs.
Both constructors are protected, and are only called by the concrete streambuf classes, such as std::basic_filebuf , std::basic_stringbuf , or std::strstreambuf .
Contents
[edit] Parameters
 rhs
 -
 a streambuf object to copy
[edit] Notes
Until C++11, it was unspecified whether basic_streambuf or any of its derived classes is CopyConstructible (LWG issue 421), and different C++ library implementations provided different options.
[edit] Example
 This section is incomplete
Reason: no example
Reason: no example
[edit] See also
 
 constructs a 
(public member function of
basic_filebuf object (public member function of
std::basic_filebuf<CharT,Traits>) [edit] 
 
 constructs a 
(public member function of
basic_stringbuf object (public member function of
std::basic_stringbuf<CharT,Traits,Allocator>) [edit]