STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::block_sequence< T > Class Template Reference

Generates a repeating sequence of values. More...

Public Member Functions

 block_sequence (T start, T end, T st=1)
 
 block_sequence (block_sequence const &seq, std::size_t offset)
 Creates a functor that is initialized to generate elements beginning at the offset position in the sequence. More...
 
operator() (void)
 

Public Types

using state_type = std::true_type
 

Detailed Description

template<typename T>
class stapl::block_sequence< T >

Generates a repeating sequence of values.

Template Parameters
TValue type of the used counter for the sequence.

This differs from the repetitive_sequence by providing the start and end values of the sequence to be repeated while repetitive_sequence accepts the start value and the number of elements before the repeat occurs.

Constructor & Destructor Documentation

◆ block_sequence()

template<typename T >
stapl::block_sequence< T >::block_sequence ( block_sequence< T > const &  seq,
std::size_t  offset 
)

Creates a functor that is initialized to generate elements beginning at the offset position in the sequence.

Parameters
seqThe sequence functor is passed in to allow offset-independent state to be copied.
offsetThe offset to be copied.

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