Namespaces
Variants
Actions

std::seed_seq::param

From cppreference.com
< cpp‎ | numeric‎ | random‎ | seed seq
 
 
 
 
 
template< class OutputIt >
void param( OutputIt dest ) const;
(since C++11)

Copies the stored seeds to the range beginning with dest. Equivalent to std::copy(v .begin(), v .end(), dest);.

If values of type result_type are not writable to dest, the program is ill-formed.

If OutputIt does not satisfy the requirements of LegacyOutputIterator, the behavior is undefined.

Contents

[edit] Parameters

dest - the beginning iterator of the output range

[edit] Exceptions

Only throws the exceptions thrown by the operations on dest.

[edit] Example

#include <iostream>
#include <iterator>
#include <random>
 
int main()
{
    std::seed_seq s1 = {-1, 0, 1};
    s1.param(