bsl::basic_stringbuf::in_avail

Looking ahead into the stream.

Synopsis

Declared in <bslstl_stringbuf.h>

streamsize
in_avail();

Description

If a read position is available, returns the number of characters available for reading before the buffer must be refilled. Otherwise returns the derived showmanyc().

Return Value

The number of characters available.