18 template <
class Char =
char,
class Traits = std::
char_traits<Char>>
19 struct ByLine :
public std::basic_string<Char, Traits>{
23 using std::basic_string<Char, Traits>::basic_string;
26 std::getline(is, line);
36 template <
class Char =
char,
class Traits = std::
char_traits<Char>>
38 using std::istream_iterator<ByLine<Char, Traits>>::istream_iterator;
51 template <
class Char =
char,
class Traits = std::
char_traits<Char>>
54 return streamFrom(iterator_t{inputStream}, iterator_t{});
Global namespace of the SCL.
friend stream_type & operator>>(stream_type &is, ByLine &line)
Class that exposes custom logic for reading a file line by line for use with std::istream_iterator.
istream iterator for reading line by line with conversion to std::basic_string
Stream< T > streamFrom(std::array< T, N > a)
Create an scl::stream::Stream from a std::array.
typename ByLine< Char, Traits >::string_type value_type
std::basic_istream< Char, Traits > stream_type
std::basic_string< Char, Traits > string_type
Class representing a stream of data.