Counting output iterator that records how many times an output iterator was assigned to, but ignores the value stored.
More...
#include <counter.h>
List of all members.
Detailed Description
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.
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
Member Data Documentation
The documentation for this struct was generated from the following file: