omni::getline
Defined in omni/String.h
-
std::basic_istream<char, std::char_traits<char>> &omni::getline(std::basic_istream<char, std::char_traits<char>> &&input, string &str)
Reads characters from the input stream
input
and places them in the stringstr
.Characters are read until end-of-file is reached on
input
, the next character in the input it'\n'
, or max_size() characters have been extracted.- Parameters
input – Stream to get input from.
str – The string to put input into.
- Returns
input
.