public member function
<locale>
get (1) | streambuf* rdbuf() const;
|
---|
set (2) | streambuf* rdbuf (streambuf* bytebuf); |
---|
Get/set underlying byte stream buffer
The first form (1) returns a pointer to the underlying byte stream buffer object currently used by the object.
The second form (2) also sets the object pointed by bytebuf as the new underlying byte stream buffer used by the object.
Return Value
A pointer to the underlying byte stream buffer object used by the object before the call.
Data races
Accesses (1) or modifies (2) the object.
Exception safety
Basic guarantee: if an exception is thrown, the object is in a valid state.