Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
Representation of integer sequence usable in foreach form of for loop. More...
#include <foreach.hpp>
Public Member Functions | |
sequence (IntegralType first, IntegralType last) | |
The constructor of the sequence based on the range. More... | |
sequence (IntegralType size) | |
Constructor of the sequence class based on the size. More... | |
virtual_pointer_to_integer< IntegralType > | begin () |
Getter of the begin iterator into the sequence. More... | |
virtual_pointer_to_integer< IntegralType > | end () |
Getter of the end iterator into the sequence. More... | |
Representation of integer sequence usable in foreach form of for loop.
The class provides begin and end iterators.
|
inline |
The constructor of the sequence based on the range.
first | the start value of the sequence |
last | the end value of the sequence |
|
inline |
Constructor of the sequence class based on the size.
size | the length of the sequence from zero |
|
inline |
Getter of the begin iterator into the sequence.
|
inline |
Getter of the end iterator into the sequence.