[#bsl-basic_stringbuf-overflow-090]
= xref:bsl.adoc[bsl]::xref:bsl/basic_stringbuf.adoc[basic&lowbar;stringbuf]::overflow
:relfileprefix: ../../
:mrdocs:

`overflow` overloads

== Synopses

Declared in `&lt;bslstl&lowbar;stringbuf&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_stringbuf/overflow-09c.adoc[overflow](int&lowbar;type &lowbar;&lowbar;c = traits&lowbar;type&colon;&colon;eof());
----

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

Append a character to the output sequence&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
xref:bsl/basic_stringbuf/int_type.adoc[basic&lowbar;stringbuf&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS, ALLOCATOR&gt;::int&lowbar;type]
xref:bsl/basic_stringbuf/overflow-0c.adoc[overflow](xref:bsl/basic_stringbuf/int_type.adoc[int&lowbar;type] character = traits&lowbar;type&colon;&colon;eof());
----

[.small]#xref:bsl/basic_stringbuf/overflow-0c.adoc[_» more&period;&period;&period;_]#

== Return Value

* eof() to indicate failure, something else (usually _&lowbar;&lowbar;c,_ or not&lowbar;eof())
* the written character, or `traits&lowbar;type&colon;&colon;eof()` on failure

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;c*
| An additional character to consume&period;
| *character*
| character to append, or `traits&lowbar;type&colon;&colon;eof()`
|===


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