A sequence that repeats itself every 'repeat' elements.
More...
|
| repetitive_sequence (T start, T st, size_t repeat) |
|
| repetitive_sequence (repetitive_sequence const &seq, const std::size_t offset) |
| Creates a functor that is initialized to generate elements beginning at the offset position in the sequence. More...
|
|
T | operator() (void) |
|
|
using | state_type = std::true_type |
|
template<typename T>
class stapl::repetitive_sequence< T >
A sequence that repeats itself every 'repeat' elements.
- Template Parameters
-
T | value type of the used counter for the sequence. |
This differs from the block_sequence by providing the start value and the number of elements before the repeat occurs while block_sequence accepts the start and end values of the sequence to be repeated.
◆ repetitive_sequence()
Creates a functor that is initialized to generate elements beginning at the offset position in the sequence.
- Parameters
-
seq | The sequence functor is passed in to allow offset-independent state to be copied. |
offset | The offset to be copied. |
The documentation for this class was generated from the following file: