2.1 KiB
[streambuf.cons]
31 Input/output library [input.output]
31.6 Stream buffers [stream.buffers]
31.6.3 Class template basic_streambuf [streambuf]
31.6.3.2 Constructors [streambuf.cons]
basic_streambuf();
Effects: Initializes:266
all pointer member objects to null pointers,
thegetloc() member to a copy of the global locale,locale(), at the time of construction.
Remarks: Once thegetloc() member is initialized, results of calling locale member functions, and of members of facets so obtained, can safely be cached until the next time the memberimbue is called.
basic_streambuf(const basic_streambuf& rhs);
Postconditions:
eback() == rhs.eback()
gptr() == rhs.gptr()
egptr() == rhs.egptr()
pbase() == rhs.pbase()
pptr() == rhs.pptr()
epptr() == rhs.epptr()
getloc() == rhs.getloc()
~basic_streambuf();
Effects: None.
The default constructor is protected for classbasic_streambuf to assure that only objects for classes derived from this class can be constructed.