Lumiera  0.pre.03
»edit your freedom«
DistinctIter< IT > Class Template Reference

#include "lib/iter-adapter-stl.hpp"

Description

template<typename IT>
class lib::iter_stl::DistinctIter< IT >

Helper to filter repeated values from a wrapped iterator (both STL or Lumiera)

Definition at line 49 of file iter-adapter-stl.hpp.

Public Types

using pointer = typename IT::pointer
 
using reference = typename IT::reference
 
using value_type = typename IT::value_type
 

Public Member Functions

 DistinctIter (IT const &i)
 
bool isValid () const
 
 operator bool () const
 
reference operator* () const
 
DistinctIteroperator++ ()
 
pointer operator-> () const
 

Friends

bool operator!= (DistinctIter const &i1, DistinctIter const &i2)
 
bool operator== (DistinctIter const &i1, DistinctIter const &i2)
 

Private Member Functions

void memorise ()
 

Private Attributes

IT i_
 
pointer prev_
 
+ Collaboration diagram for DistinctIter< IT >:

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