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

Append a character to the output sequence&period;

== Synopsis

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

[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]
overflow(xref:bsl/basic_stringbuf/int_type.adoc[int&lowbar;type] character = traits&lowbar;type&colon;&colon;eof());
----

== Description

Append the specified `character` to the output sequence of this stream buffer at the current output position (`pptr`), and advance the output position by one&period; This operation may update the end of output area (`epptr`) to allow for additional writes (e&period;g&period;, by the base `basic&lowbar;streambuf` type) to the output sequence without calling a method on this type&period; Return the written character on success, and `traits&lowbar;type&colon;&colon;eof()` if `character` is `traits&lowbar;type&colon;&colon;eof()` or this stream buffer was not opened for writing&period;

== Return Value

the written character, or `traits&lowbar;type&colon;&colon;eof()` on failure

== Parameters

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


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