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

FreeBSD Manual Pages

  
 
  

home | help
std::linear...ntial_engine(3) C++ Standard Libarystd::linear...ntial_engine(3)

NAME
       std::linear_congruential_engine::linear_congruential_engine - std::lin-
       ear_congruential_engine::linear_congruential_engine

Synopsis
	  linear_congruential_engine()					     :
       (1) (since C++11)
	  linear_congruential_engine(default_seed) {}
	  explicit   linear_congruential_engine(    result_type	   value    );
       (2) (since C++11)
	  template<		    class		 Sseq		     >
       (3) (since C++11)
	  explicit linear_congruential_engine( Sseq& s );
										(since
       C++11)
	  linear_congruential_engine(  const  linear_congruential_engine&   );
       (4) (implicitly
										de-
       clared)

	  Constructs the pseudo-random number engine.

	  1) Default constructor. Seeds	the engine with	default_seed.

	   This	section	is incomplete

	  The  overload	 (3)  only participates	in overload resolution if Sseq
       qualifies as a
	  SeedSequence.	In particular, it is excluded from the set  of	candi-
       date functions if
	  Sseq is convertible to result_type.

Parameters
	  value	 -  seed  value	 to  use in the	initialization of the internal
       state
	  s	- seed sequence	to use in the initialization of	 the  internal
       state

Complexity
	   This	section	is incomplete

	 Defect	reports

	  The following	behavior-changing defect reports were applied retroac-
       tively to
	  previously published C++ standards.

	    DR	  Applied to	  Behavior as published	      Correct behavior
	  P0935R0 C++11	     default constructor was explicit made implicit

See also
	  seed	  sets the current state of the	engine
	  (C++11) (public member function)

http://cppreference.com		  2022.07.31	 std::linear...ntial_engine(3)

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

home | help