17 std::istream::sentry se(is,
true);
18 std::streambuf* sb = is.rdbuf();
26 if(sb->sgetc() ==
'\n')
32 is.setstate(std::ios::eofbit);
Functions and classes that are not dependant on scalar type are defined in this namespace.
std::istream & safeGetLine(std::istream &is, std::string &t)
Replaces getline for handling windows style CR/LF line endings.