30
Input/output library
[input.output]
30.6
Stream buffers
[stream.buffers]
30.6.3
Class template
basic_streambuf
[streambuf]
30.6.3.1
basic_streambuf
constructors
[streambuf.cons]
basic_streambuf();
1
#
Effects:
Constructs an object of class
basic_streambuf<charT, traits>
and initializes:
299
(1.1)
all its pointer member objects to null pointers,
(1.2)
the
getloc()
member to a copy the global locale,
locale()
, at the time of construction
.
2
#
Remarks:
Once the
getloc()
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 member
imbue
is called
.
basic_streambuf(const basic_streambuf& rhs);
3
#
Effects:
Constructs a copy of
rhs
.
4
#
Postconditions:
(4.1)
eback() == rhs.eback()
(4.2)
gptr() == rhs.gptr()
(4.3)
egptr() == rhs.egptr()
(4.4)
pbase() == rhs.pbase()
(4.5)
pptr() == rhs.pptr()
(4.6)
epptr() == rhs.epptr()
(4.7)
getloc() == rhs.getloc()
~basic_streambuf();
5
#
Effects:
None
.
299)
The default constructor is protected for class
basic_streambuf
to assure that only objects for classes derived from this class may be constructed
.