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

Generates a sequence of consecutive values. More...

Public Member Functions

 sequence (T start=0, T st=1)
 
 sequence (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::sequence< T >

Generates a sequence of consecutive values.

Template Parameters
TThe value type of the elements generated.

Constructor & Destructor Documentation

◆ sequence()

template<typename T >
stapl::sequence< T >::sequence ( 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: