Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
IstreamLineInterface.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <string>
9
11
12namespace cli {
13
19template < class Stream >
21 Stream m_is;
22
23 bool readline ( std::string & line, bool ) override {
24 return static_cast < bool > ( std::getline ( m_is, line ) );
25 }
26
27public:
28 IstreamLineInterface ( Stream ifs ) : m_is ( std::forward < Stream > ( ifs ) ) {
29 }
30};
31
32} // namespace cli
33
Definition: IstreamLineInterface.h:20
IstreamLineInterface(Stream ifs)
Definition: IstreamLineInterface.h:28
Definition: LineInterface.h:15
Definition: Arg.h:11
Definition: FordFulkerson.hpp:16