Dummy output iterator that counts how many times it was assigned to. without actually storing anything. More...
#include <cstdlib>#include <iterator>

Go to the source code of this file.
Classes | |
| struct | counter_iterator< T > |
| Counting output iterator that records how many times an output iterator was assigned to, but ignores the value stored. More... | |
| struct | counter_iterator< T >::target |
| struct representation of a no-op. Makes assignment to target do nothing. More... | |
Namespaces | |
| namespace | cluster |
Namespace for everything in the cluster library. | |
Functions | |
| template<class T > | |
| counter_iterator< T > | counter (T &ref) |
| Adaptor for creating type-inferred counters. | |
Dummy output iterator that counts how many times it was assigned to. without actually storing anything.
Definition in file counter.h.
Muster.
Copyright © 2010, Lawrence Livermore National Laboratory, LLNL-CODE-433662.