folly::getline

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

Synopsis

Declared in <folly/FBString.h>

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

NOTE

This function is a hidden friend of basic_fbstring, declared only inside that class: it can be found only through argument-dependent lookup.

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.