bsl::basic_istringstream::getline

getline overloads

Synopses

Declared in <bslstl_istringstream.h>

String extraction.

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

Extract a line of characters into buffer.

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

String extraction.

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

Extract characters into buffer until delimiter.

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

Return Value

  • *this
  • a reference to this stream

Parameters

NameDescription
__sA character array in which to store the data.
__nMaximum number of characters to extract.
bufferdestination character array
countmaximum number of characters to store
__delimA "stop" character.
delimitercharacter that stops extraction