std::basic_spanbuf<CharT,Traits>::setbuf

Makes the basic_spanbuf perform I/O on the buffer [s,s + n). Equivalently calls this->span(std::span(s, n)) and then returns this.

# Declarations

protected:
std::basic_streambuf<CharT, Traits>* setbuf( CharT *s, std::streamsize n ) override;

(since C++23)

# Parameters

# 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

# See also