- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

# sequence Class Reference

Generate a sequence of integers. More...

`#include <sequence.hpp>`

List of all members.

## Public Member Functions
| sequence (int start=0, int step=1)
int | operator() ()
| Return the current value in the sequence, and increment the value.

## Detailed Description

Generate a sequence of integers.

Listing 40-8. The sequence.hpp file

Definition at line 7 of file sequence.hpp.

## Constructor & Destructor Documentation

sequence::sequence | ( | int | start = `0`,
|  | int | step = `1` |
| ) |  |  | `[inline]`

Construct the functor.

Parameters:

  | 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.

The documentation for this class was generated from the following file:

- sequence.hpp