bsl::basic_istringstream::get

get overloads

Synopses

Declared in <bslstl_istringstream.h>

Extract one character from the stream.

int_type
get();
» more...

Extraction into another streambuf.

__istream_type&
get(__streambuf_type& __sb);
» more...

Simple extraction.

__istream_type&
get(char_type& __c);
» more...

Extract one character into character.

BaseStream&
get(char_type& character);
» more...

Extract characters into streambuf until a newline.

BaseStream&
get(std::basic_streambuf<char_type, traits_type>& streambuf);
» more...

Extraction into another streambuf.

__istream_type&
get(
    __streambuf_type& __sb,
    char_type __delim);
» more...

Extract characters into streambuf until delimiter.

BaseStream&
get(
    std::basic_streambuf<char_type, traits_type>& streambuf,
    char_type delimiter);
» more...

Simple multiple-character extraction.

__istream_type&
get(
    char_type* __s,
    streamsize __n);
» more...

Extract up to count characters into buffer.

BaseStream&
get(
    char_type* buffer,
    std::streamsize count);
» more...

Simple multiple-character extraction.

__istream_type&
get(
    char_type* __s,
    streamsize __n,
    char_type __delim);
» more...

Extract characters into buffer until delimiter.

BaseStream&
get(
    char_type* buffer,
    std::streamsize count,
    char_type delimiter);
» more...

Return Value

  • the extracted character traits value, or eof on failure
  • *this
  • a reference to this stream

Parameters

NameDescription
__sbA streambuf in which to store data.
__cThe character in which to store data.
characterdestination for the extracted character
streambufdestination stream buffer
__delimA "stop" character.
delimitercharacter that stops extraction
__sPointer to an array.
__nMaximum number of characters to store in s.
bufferdestination character array
countmaximum number of characters to extract