protected virtual member function
<sstream>

std::stringbuf::setbuf

streambuf* setbuf (char* s, streamsize n);
Set buffer
Virtual function called by the public member function pubsetbuf to influence the object in a way that is dependent on the library implementation.

If both arguments are zero, the call is guaranteed to have no effect on the stringbuf object.

Parameters

s, n
Implementation-defined.
If both are zero, no effect.
streamsize is a signed integral type.

Return Value

Returns this.

Data races

If both arguments are zero, it introduces no data races.
Otherwise, unspecified.

Exception safety

Basic guarantee: if an exception is thrown, the object is in a valid state.

See also