public member function
<random>

std::seed_seq::param

template <class OutputIterator> void param (OutputIterator dest) const;
Copy internal sequence
Copies the internal sequence into dest.
The internal sequence of a seed_seq object is set on construction.

Parameters

dest
Output iterators to the initial position in a range of at least size elements of a type supporting the copy of integer values of member type result_type.

Return Value

none

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// seed_seq::param
#include <iostream>
#include <random>
#include <iterator>
#include <array>

int main ()
{
  std::seed_seq seed = {102,406,7892};

  std::cout << "size: " << seed.size() << std::endl;

  std::ostream_iterator<unsigned> out (std::cout," ");
  std::cout << "elements: "; seed.param(out); std::cout << std::endl;

  return 0;
}


Output:
size: 3
elements: 102 406 7892

Complexity

Linear on the internal sequence size.

See also