cpp/io/basic stringbuf/setbuf

If is a null pointer and  is zero, this function has no effect.

Otherwise, the effect is implementation-defined: some implementations do nothing, while some implementations clear the std member currently used as the buffer and begin using the user-supplied character array of size, whose first element is pointed to by , as the buffer and the input/output character sequence.

This function is protected virtual, it may only be called through or from member functions of a user-defined class derived from.

Return value
.