std::basic_spanbuf<CharT,Traits>::setbuf
Min standard notice:
Makes the basic_spanbuf perform I/O on the buffer [s,s + n). Equivalently calls this->span(std::span
# Declarations
protected:
std::basic_streambuf<CharT, Traits>* setbuf( CharT *s, std::streamsize n ) override;
(since C++23)
# Parameters
s: pointer to the first CharT in the user-provided buffern: the number of CharT elements in the user-provided buffer
# Return value
this
# Notes
The deprecated stream buffer std::strstreambuf or the boost.IOStreams device boost::basic_array can also implement I/O buffering over a user-provided char array.
# Example
This section is incompleteReason: no example