Remove duplicate values from from value iterator. More...
#include <values-unique.hpp>
Protected Attributes | |
I | i |
Value iterator used. More... | |
Constructors and initialization | |
Unique (void) | |
Default constructor. More... | |
Unique (I &i) | |
Initialize with value iterator i. More... | |
void | init (I &i) |
Initialize with value iterator i. More... | |
Iteration control | |
bool | operator() (void) const |
Test whether iterator is still at a value or done. More... | |
void | operator++ (void) |
Move iterator to next unique value (if possible) More... | |
Value access | |
int | val (void) const |
Return current value. More... | |
Remove duplicate values from from value iterator.
The iterator only requires that the value iterator iterates values in increasing order. Duplicates in the iterated value sequence are removed.
Definition at line 50 of file values-unique.hpp.
|
inline |
Default constructor.
Definition at line 82 of file values-unique.hpp.
|
inline |
Initialize with value iterator i.
Definition at line 86 of file values-unique.hpp.
|
inline |
Initialize with value iterator i.
Definition at line 91 of file values-unique.hpp.
|
inline |
Test whether iterator is still at a value or done.
Definition at line 105 of file values-unique.hpp.
|
inline |
Move iterator to next unique value (if possible)
Definition at line 97 of file values-unique.hpp.
|
inline |
Return current value.
Definition at line 111 of file values-unique.hpp.
|
protected |
Value iterator used.
Definition at line 53 of file values-unique.hpp.