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

Wrapper around a generator functor that calls the generator's constructor to update its state to a specified offset, if the generator has implemented the method. More...

Public Member Functions

 offset_gen (Generator gen)
 
result_type operator() (index_type const &i) const
 

Public Types

using index_type = Index
 
using result_type = Value
 

Detailed Description

template<typename Index, typename Value, typename Generator>
class stapl::offset_gen< Index, Value, Generator >

Wrapper around a generator functor that calls the generator's constructor to update its state to a specified offset, if the generator has implemented the method.

This is used in the generate() pAlgorithm to support generators that produce values that vary based on the number of times the generator's function operator has been invoked.


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