All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
gears::io::line_iterator< CharT, Traits > Struct Template Reference

Iterator that iterates through stdin lines. More...

Inherits iterator< std::input_iterator_tag, std::basic_string< CharT, Traits > >.

Public Member Functions

 line_iterator (std::basic_istream< CharT, Traits > &out) noexcept
 
auto operator++ () noexcept-> decltype(*this)
 
line_iterator operator++ (int) noexcept
 
auto operator* () noexcept-> decltype(value)
 
auto operator-> () noexcept-> decltype(&value)
 
bool operator== (const line_iterator &other) const noexcept
 
bool operator!= (const line_iterator &other) const noexcept
 

Detailed Description

template<typename CharT = char, typename Traits = std::char_traits<CharT>>
struct gears::io::line_iterator< CharT, Traits >

An iterator that iterates through lines given by stdin such as std::cin, std::ifstream, and std::istringstream. This iterator is basically a wrapper around std::getline and std::istream. This should not be used directly.

Template Parameters
CharTUnderlying character type of the string.
TraitsUnderlying std::char_traits-like of the string.

Definition at line 42 of file lines.hpp.