folly::getline

getline overloads

Synopses

Declared in <folly/FBString.h>

Reads characters from a stream into a string until a newline.

istream_type&
getline(
    istream_type& is,
    basic_fbstring& str);
» more...

Reads characters from a stream into a string until a delimiter.

istream_type&
getline(
    istream_type& is,
    basic_fbstring& str,
    value_type delim);
» more...

Return Value

A reference to the input stream.

Parameters

NameDescription
isThe input stream to read from.
strThe string to store the read characters.
delimThe delimiter character that stops reading.