bsl::basic_istringstream::get

Extraction into another streambuf.

Synopsis

Declared in <bslstl_istringstream.h>

__istream_type&
get(
    __streambuf_type& __sb,
    char_type __delim);

Description

Characters are extracted and inserted into __sb until one of the following happens:

  • the input sequence reaches EOF

  • insertion into the output buffer fails (in this case, the character that would have been inserted is not extracted)

  • the next character equals __delim (in this case, the character is not extracted)

  • an exception occurs (and in this case is caught)

If no characters are stored, failbit is set in the stream's error state.

Return Value

*this

Parameters

NameDescription
__sbA streambuf in which to store data.
__delimA "stop" character.