Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::seed_seq::param(3)	      C++ Standard Libary      std::seed_seq::param(3)

NAME
       std::seed_seq::param - std::seed_seq::param

Synopsis
	  template< class OutputIt >	      (since C++11)
	  void param( OutputIt dest ) const;

	  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 LegacyOutputIterator.

Return value
	  (none)

Exceptions
	  Throws only if an operation on dest throws.

Example
       // Run this code

	#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

http://cppreference.com		  2022.07.31	       std::seed_seq::param(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::seed_seq::param&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help