cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
List of all members
shuffle_order_engine< Engine, K > Class Template Reference

An adapter that caches and returns results from a generator in a random-ish order. . More...

Detailed Description

template<typename Engine, size_t K>
class cxxomfort::cxxostd::random::shuffle_order_engine< Engine, K >

An adapter that caches and returns results from a generator in a random-ish order. .

<random>:

Given an Engine such as ranlux24_base , the instantiation Foo : shuffle_order_engine<ranlux24_base,44> creates an adaptor that acts as an Engine, except that it caches 44 values that are then returned randomly instead of in the order given by the generator. Each new invocation of ::operator() replaces the value returned from the cache with a new value from the Engine .

C++11 defines a specific instantiation with the name knuth_b .


The documentation for this class was generated from the following file: