C++ Utilities
Loading...
Searching...
No Matches
stream.h

Some utility functions that work on contents of streams. See the Stream Functions page for all the details. More...

Go to the source code of this file.

Namespaces

namespace  utilities
 The namespace for the utilities library.

Functions

std::string utilities::read_line (std::istream &s, std::string_view comment_begin="#")
 Reads one 'line' from a stream and returns that as a new std::string.
std::istream & utilities::rewind (std::istream &is)
 Rewind an input stream to the start.
std::size_t utilities::line_count (std::istream &is, std::string_view comment_begin="#")
 Counts the number of lines in the input stream.

Detailed Description

Some utility functions that work on contents of streams. See the Stream Functions page for all the details.