The counter template is used for generic objects which act as automatic counters.
More...
#include <counter.h>
template<typename T>
class ost::Counter< T >
The counter template is used for generic objects which act as automatic counters.
Each time the object is accessed, the underlying counted data type is incremented.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org Automatic counter template class.
§ Counter() [1/3]
Construct and initialize a counter to zero.
§ Counter() [2/3]
§ Counter() [3/3]
Construct a counter with an initial value of the specified data type.
- Parameters
-
§ operator T()
§ operator=()
§ count
The documentation for this class was generated from the following file: