Files
cppdraft_translate/cppdraft/streambuf/cons.md
2025-10-25 03:02:53 +03:00

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();

1

#

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.

2

#

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);

3

#

Postconditions:

eback() == rhs.eback()

gptr() == rhs.gptr()

egptr() == rhs.egptr()

pbase() == rhs.pbase()

pptr() == rhs.pptr()

epptr() == rhs.epptr()

getloc() == rhs.getloc()

🔗

~basic_streambuf();

4

#

Effects: None.

266)266)

The default constructor is protected for classbasic_streambuf to assure that only objects for classes derived from this class can be constructed.