lfilesystem  0.0.1
C++ filesystem library
limes::files::File::Iterator Struct Referencefinal

An iterator class that allows iterating a file like a standard C++ container. More...

#include <lfilesystem_File.h>

Public Types

using difference_type = std::ptrdiff_t
 
using iterator_category = std::forward_iterator_tag
 
using pointer = std::string *
 
using reference = std::string &
 
using value_type = std::string
 

Public Member Functions

 Iterator (const Iterator &)=default
 
 Iterator (Iterator &&)=default
 
bool operator!= (Iterator other)
 
reference operator* () const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
pointer operator-> () const
 
Iteratoroperator= (const Iterator &)=default
 
Iteratoroperator= (Iterator &&)=default
 
bool operator== (Iterator other)
 

Detailed Description

An iterator class that allows iterating a file like a standard C++ container.

The iterator will advance through the file line-by-line. The file class will create an array of all its lines when you call begin() ; the iterator will advance through this array as you increment it.

See also
begin(), end()

Definition at line 294 of file lfilesystem_File.h.


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