Support Class Library
A set of tools providing classes and utility
Public Types | Friends | List of all members
scl::stream::creators::details::ByLine< Char, Traits > Struct Template Reference

Class that exposes custom logic for reading a file line by line for use with std::istream_iterator. More...

#include "istream.h"

Inheritance diagram for scl::stream::creators::details::ByLine< Char, Traits >:
Inheritance graph
[legend]
Collaboration diagram for scl::stream::creators::details::ByLine< Char, Traits >:
Collaboration graph
[legend]

Public Types

using stream_type = std::basic_istream< Char, Traits >
 
using string_type = std::basic_string< Char, Traits >
 

Friends

stream_typeoperator>> (stream_type &is, ByLine &line)
 

Detailed Description

template<class Char = char, class Traits = std::char_traits<Char>>
struct scl::stream::creators::details::ByLine< Char, Traits >

Class that exposes custom logic for reading a file line by line for use with std::istream_iterator.

Template Parameters
Charbeing the type of characters
Traitsbeing the traits of the type of characters

Definition at line 19 of file istream.h.

Member Typedef Documentation

◆ stream_type

template<class Char = char, class Traits = std::char_traits<Char>>
using scl::stream::creators::details::ByLine< Char, Traits >::stream_type = std::basic_istream<Char, Traits>

Definition at line 20 of file istream.h.

◆ string_type

template<class Char = char, class Traits = std::char_traits<Char>>
using scl::stream::creators::details::ByLine< Char, Traits >::string_type = std::basic_string<Char, Traits>

Definition at line 21 of file istream.h.

Friends And Related Function Documentation

◆ operator>>

template<class Char = char, class Traits = std::char_traits<Char>>
stream_type& operator>> ( stream_type is,
ByLine< Char, Traits > &  line 
)
friend

Definition at line 25 of file istream.h.


The documentation for this struct was generated from the following file: