C++ named requirements: RandomNumberEngineAdaptor (since C++11) (original) (raw)

A RandomNumberEngineAdaptor is a RandomNumberEngine that transforms the output of another RandomNumberEngine, the latter of which is termed a base engine.

[edit] Requirements

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 whether lhs's base engine is equal to rhs's base engine or not.
A::A(result_type s); The base engine is initialized with s.
template<class Sseq> A::A(Sseq& q); The base engine is initialized with q.
void seed(); Invokes b.seed().
void seed(result_type s); Invokes b.seed(s).
template<class Sseq> void seed(Sseq& q); Invokes b.seed(q).

Furthermore

[edit] Standard library

The following standard library facilities satisfy RandomNumberEngineAdaptor: