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

Generates a sequence of std::pair<K, V> elements. More...

Public Member Functions

 associative_sequence (KeyGenerator &kg, ValueGenerator &vg)
 
 associative_sequence (associative_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...
 
result_type operator() (void)
 

Public Types

using state_type = std::true_type
 

Detailed Description

template<typename KeyGenerator, typename ValueGenerator, typename Key, typename Value>
class stapl::associative_sequence< KeyGenerator, ValueGenerator, Key, Value >

Generates a sequence of std::pair<K, V> elements.

Template Parameters
KeyGeneratorKey's generator type.
ValueGeneratorValue's generator type.
KeyKey's value type.
ValueValue's value type.

Constructor & Destructor Documentation

◆ associative_sequence()

template<typename KeyGenerator , typename ValueGenerator , typename Key , typename Value >
stapl::associative_sequence< KeyGenerator, ValueGenerator, Key, Value >::associative_sequence ( associative_sequence< KeyGenerator, ValueGenerator, Key, Value > 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: