36 explicit operator bool()
const;
An iterator that reads lines from an input stream, splitting each line into two strings based on a co...
Definition CommaSeparatedIterator.h:17
std::string first_
First string from the current line.
Definition CommaSeparatedIterator.h:40
CommaSeparatedIterator & operator++()
Pre-increment operator to advance the iterator to the next line.
Definition CommaSeparatedIterator.cpp:27
std::string second_
Second string from the current line.
Definition CommaSeparatedIterator.h:41
std::pair< std::string, std::string > value_type
Type alias for the value returned by the iterator (pair of strings)
Definition CommaSeparatedIterator.h:20
value_type operator*() const
Dereference operator to obtain the current pair of substrings.
Definition CommaSeparatedIterator.cpp:65
std::istream & stream_
Reference to the input stream.
Definition CommaSeparatedIterator.h:38
std::string line_
Current line read from the stream.
Definition CommaSeparatedIterator.h:39
CommaSeparatedIterator(std::istream &stream)
Constructor method.
Definition CommaSeparatedIterator.cpp:13