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

Setting the three read area pointers&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setg(
    char&lowbar;type* &lowbar;&lowbar;gbeg,
    char&lowbar;type* &lowbar;&lowbar;gnext,
    char&lowbar;type* &lowbar;&lowbar;gend);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;gbeg*
| A pointer&period;
| *&lowbar;&lowbar;gnext*
| A pointer&period;
| *&lowbar;&lowbar;gend*
| A pointer&period;
|===

== Postconditions

* _&lowbar;&lowbar;gbeg_ &equals;&equals; `eback(),` _&lowbar;&lowbar;gnext_ &equals;&equals; `gptr(),` and _&lowbar;&lowbar;gend_ &equals;&equals; `egptr()`


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