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

`overflow` overloads

== Synopses

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

Consumes data from the buffer&semi; writes to the controlled sequence&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
int&lowbar;type
xref:bsl/basic_syncbuf/overflow-08.adoc[overflow](int&lowbar;type &lowbar;&lowbar;c = traits&lowbar;type&colon;&colon;eof());
----

[.small]#xref:bsl/basic_syncbuf/overflow-08.adoc[_» more&period;&period;&period;_]#

Append the specified `character` to the internal buffer, or do nothing if `traits&lowbar;type&colon;&colon;eof()` is passed&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/basic_syncbuf/int_type.adoc[basic&lowbar;syncbuf&lt;CHAR, TRAITS, ALLOCATOR&gt;::int&lowbar;type]
xref:bsl/basic_syncbuf/overflow-09.adoc[overflow](xref:bsl/basic_syncbuf/int_type.adoc[int&lowbar;type] character = traits&lowbar;type&colon;&colon;eof()) override;
----

[.small]#xref:bsl/basic_syncbuf/overflow-09.adoc[_» more&period;&period;&period;_]#

== Return Value

eof() to indicate failure, something else (usually _&lowbar;&lowbar;c,_ or not&lowbar;eof())

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;c*
| An additional character to consume&period;
|===


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