[#bsl-basic_syncbuf-setbuf-07]
= xref:bsl.adoc[bsl]::xref:bsl/basic_syncbuf.adoc[basic&lowbar;syncbuf]::setbuf
:relfileprefix: ../../
:mrdocs:

Manipulates the buffer&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;syncbuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
basic&lowbar;streambuf&lt;char&lowbar;type, &lowbar;Traits&gt;*
setbuf(
    char&lowbar;type*,
    streamsize);
----

== Description

Each derived class provides its own appropriate behavior&period; See the next&hyphen;to&hyphen;last paragraph of https&colon;&sol;&sol;gcc&period;gnu&period;org&sol;onlinedocs&sol;libstdc&plus;&plus;&sol;manual&sol;streambufs&period;html&num;io&period;streambuf&period;buffering for more on this function&period;

[NOTE]
====
Base class version does nothing, returns `this&period;`

====


[.small]#Created with https://www.mrdocs.com[MrDocs]#
