Namespaces
Variants
Views
Actions

std::seed_seq::param

From cppreference.com
< cpp‎ | numeric‎ | random‎ | seed seq
Revision as of 17:42, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
 

Template:ddcl list begin <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
template< class OutputIt >
void param( OutputIt dest ) const;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Outputs the initial seed sequence that's stored in the std::seed_seq object.

Parameters

dest - output iterator such that the expression *dest=rt is valid for a value rt of result_type
Type requirements
-
OutputIt must meet the requirements of OutputIterator.

Return value

(none)

Example

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

Output:

-1 0 1