The OpenD Programming Language

PermutedCongruentialEngine.save

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_...)
@property const
static if(output_previous)
static if(streamType != stream_t.unique)
typeof(this)
save
()
()
if (
mult_.length <= 1
)

Meta