Counting output iterator that records how many times an output iterator was assigned to, but ignores the value stored.
More...
template<class T>
struct cluster::counter_iterator< T >
Counting output iterator that records how many times an output iterator was assigned to, but ignores the value stored.
This is useful if you just want to know the size of something that an STL algorithm would output, without actually allocating space for it.
- Note
- Don't use this directly; Instantiate this using the counter() template function so that you don't have to supply a type (see sample usage in file docs).
Definition at line 58 of file counter.h.