Classes | Namespaces | Functions

src/counter.h File Reference

Dummy output iterator that counts how many times it was assigned to. without actually storing anything. More...

#include <cstdlib>
#include <iterator>
Include dependency graph for counter.h:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

Dummy output iterator that counts how many times it was assigned to. without actually storing anything.

Author:
Todd Gamblin tgamblin@llnl.gov

Definition in file counter.h.

Muster. Copyright © 2010, Lawrence Livermore National Laboratory, LLNL-CODE-433662.
Distribution of Muster and its documentation is subject to terms of the Muster LICENSE.
Generated on Mon Dec 20 2010 using Doxygen 1.7.2