overflow overloads

Synopses

Declared in <bslstl_syncbuf.h>

Consumes data from the buffer; writes to the controlled sequence.

virtual
int_type
overflow(int_type __c = traits_type::eof());

Append the specified character to the internal buffer.

basic_syncbuf<CHAR, TRAITS, ALLOCATOR>::int_type
overflow(int_type character = traits_type::eof()) override;

Return Value

  • eof() to indicate failure, something else (usually __c, or not_eof())

  • the written character, or traits_type::eof() if character is eof

Parameters

Name

Description

__c

An additional character to consume.

character

character to append, or traits_type::eof()

Created with MrDocs