#include <count_iterator.h>
Public Member Functions | |
| count_iterator () | |
| count_iterator (size_t c) | |
| ignore_assign | operator * () |
| void | operator++ () |
| operator size_t () const | |
Public Attributes | |
| size_t | count |
Classes | |
| struct | ignore_assign |
|
|||||||||
|
Create a new counter, initialized to zero. |
|
||||||||||
|
Create a new counter, initialized to c. |
|
|||||||||
|
No-op; just gets the types right. |
|
|||||||||
|
Implicit cast to size_t: returns the count. |
|
|||||||||
|
Increment the count. |
|
|||||
|
The count so far. |
1.4.6