protected member function
void setp (char_type* new_pbase, char_type* new_epptr);
Set output sequence pointers
Sets the value for the pointers that define the boundaries of the buffered portion of the controlled output sequence (pbase and epptr).
The put pointer (pptr) is automatically set to the beginning of this sequence.
This is a protected member that other member functions can call to change the array that describes the buffered portion of the controlled output sequence.
Member type char_type is the type of the characters in the stream buffer (the first class template parameter).
- New value for the pointer to the beginning of the accessible part of the controlled output sequence (pbase).
The put pointer (pptr) is also set to this value.
- New value for the end pointer, just past the end of the accessible part of the controlled output sequence (epptr).
This shall point to a character in the same array as new_pbase.
Modifies the stream buffer object.
Concurrent access to the same stream buffer object may introduce data races.
Basic guarantee: if an exception is thrown, the stream buffer is in a valid state.
Invalid arguments cause undefined behavior.