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

Generates a sequence of random values. More...

Public Member Functions

 random_sequence (int i)
 
 random_sequence (random_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...
 
int operator() (void)
 

Public Types

using state_type = std::true_type
 

Detailed Description

Generates a sequence of random values.

Constructor & Destructor Documentation

◆ random_sequence()

stapl::random_sequence::random_sequence ( random_sequence 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: