#include <sequence.hpp>
Public Member Functions | |
| sequence (int start=0, int step=1) | |
| int | operator() () |
| Return the current value in the sequence, and increment the value. | |
Listing 40-8. The sequence.hpp file
Definition at line 7 of file sequence.hpp.
| sequence::sequence | ( | int | start = 0, |
|
| int | step = 1 | |||
| ) | [inline] |
Construct the functor.
| start | the first value the generator returns | |
| step | increment the value by this much for each call |
Definition at line 13 of file sequence.hpp.
1.5.3