getline overloads

Synopses

Declared in <bslstl_istringstream.h>

String extraction.

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

Extract a line of characters into buffer.

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

String extraction.

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

Extract characters into buffer until delimiter.

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

Return Value

  • *this

  • a reference to this stream

Parameters

Name

Description

__s

A character array in which to store the data.

__n

Maximum number of characters to extract.

buffer

destination character array

count

maximum number of characters to store

__delim

A "stop" character.

delimiter

character that stops extraction

Created with MrDocs