[#BloombergLP-bdls-FdStreamBuf-overflow]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FdStreamBuf.adoc[FdStreamBuf]::overflow
:relfileprefix: ../../../
:mrdocs:

Flush the output buffer, optionally appending character `c` first&period;

== Synopsis

Declared in `&lt;bdls&lowbar;fdstreambuf&period;h&gt;`

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

== Description

If in output mode, write the contents of the buffer to output&period; Return `traits&lowbar;type&colon;&colon;eof()` on failure, and any other value on success&period; Optionally specify a character `c` to be appended to the buffer prior to the flush&period; If no character is specified, no character is appended to the buffer&period; If not in output mode, switch to output mode&period; Note that the write will translate &grave; `s to `r
&grave;s&period;

== Return Value

`traits&lowbar;type&colon;&colon;eof()` on failure, and any other value on success

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c*
| character to append before flushing, or `eof()`
|===


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