|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ARandomNumberEngineAdaptor is aRandomNumberEngine that transforms the output of anotherRandomNumberEngine, the latter of which is termed abase engine.
Given
| function | semantics |
|---|---|
| A::A(); | The base engine is initialized as if by its default constructor. |
| bool operator==(const A& lhs,const A& rhs); | Returns whetherlhs's base engine is equal torhs's base engine or not. |
| A::A(result_type s); | The base engine is initialized withs. |
| template<class Sseq> A::A(Sseq& q); | The base engine is initialized withq. |
| void seed(); | Invokesb.seed(). |
| void seed(result_type s); | Invokesb.seed(s). |
| template<class Sseq>void seed(Sseq& q); | Invokesb.seed(q). |
Furthermore
The following standard library facilities satisfyRandomNumberEngineAdaptor:
(C++11) | discards some output of a random number engine (class template)[edit] |
(C++11) | packs the output of a random number engine into blocks of a specified number of bits (class template)[edit] |
(C++11) | delivers the output of a random number engine in a different order (class template)[edit] |