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.
返回值
A pointer to the underlying byte stream buffer object used by the object before the call.
数据竞争
Accesses (1) or modifies (2) the object.
异常安全
基本保证:如果抛出异常,对象处于有效状态。