[#BloombergLP-bdlsb-OverflowMemOutStreamBuf-overflow]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/OverflowMemOutStreamBuf.adoc[OverflowMemOutStreamBuf]::overflow
:relfileprefix: ../../../
:mrdocs:

Put `c` at the next put position, growing the buffer if needed&period;

== Synopsis

Declared in `&lt;bdlsb&lowbar;overflowmemoutstreambuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
int&lowbar;type
overflow(int&lowbar;type c = bsl&colon;&colon;streambuf&colon;&colon;traits&lowbar;type&colon;&colon;eof()) override;
----

== Description

If c is not `EOF`, adjust the underlying buffer so that the next put position is valid, put the specified `c` at this position, and increment the put position&period; Return `c` on success, and `traits&lowbar;type&colon;&colon;not&lowbar;eof(c)` if `c` is `EOF`&period;

== Return Value

`c` on success, or `traits&lowbar;type&colon;&colon;not&lowbar;eof(c)` if `c` is `EOF`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c*
| character to put, or `EOF` to grow without writing
|===


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