The OpenD Programming Language

PermutedCongruentialEngine.popFront

Compatibility with Phobos library methods. Presents this RNG as an InputRange. Only available if output_previous == true.

The reason that this is enabled when output_previous == true is because front can be implemented without additional cost.

save is implemented if streamType is not stream_t.unique.

This struct disables its default copy constructor and so will only work with Phobos functions that "do the right thing" and take RNGs by reference and do not accidentally make implicit copies.

struct PermutedCongruentialEngine(alias output, stream_t streamType, bool output_previous, mult_...)
static if(output_previous)
void
popFront
()
()
if (
mult_.length <= 1
)

Meta