cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
Classes | Namespaces | Typedefs
random.hpp File Reference

Implementations and additions tied to Standard header <random>. More...

Classes

struct  linear_congruential_engine<... >
 Backports std::linear_congruential_engine to compilers that miss it or use a different name. More...
 
struct  subtract_with_carry_engine<... >
 Backports std::subtract_with_carry_engine to compilers that miss it or use a different name. More...
 
struct  shuffle_order_engine< Engine, K >
 Forwarder for std::shuffle_order_engine. More...
 

Namespaces

 cxxomfort
 Namespace of the cxxomfort library.
 
 cxxomfort::fix
 Fixes for implementation issues in std.
 
 cxxomfort::cxxostd
 Backports made available by cxxomfort.
 

Typedefs

typedef std::ranlux24_base default_random_engine
 cxxomfort uses ranlux24_base as its "default random engine". More...
 
typedef shuffle_order_engine< minstd_rand, 256 > knuth_b
 Forwarder for the std::knuth_b specialization of shuffle_order_engine .See shuffle_order_engine above.
 

Detailed Description

Implementations and additions tied to Standard header <random>.


Class Documentation

◆ cxxomfort::cxxostd::linear_congruential_engine

struct cxxomfort::cxxostd::linear_congruential_engine

template<typename...>
struct cxxomfort::cxxostd::linear_congruential_engine<... >

Backports std::linear_congruential_engine to compilers that miss it or use a different name.

C++03/TR1 Backports:
<random> backports.
<random>:
<random> backports.

◆ cxxomfort::cxxostd::subtract_with_carry_engine

struct cxxomfort::cxxostd::subtract_with_carry_engine

template<typename...>
struct cxxomfort::cxxostd::subtract_with_carry_engine<... >

Backports std::subtract_with_carry_engine to compilers that miss it or use a different name.

C++03/TR1 Backports:
<random> backports.
<random>:
<random> backports.

◆ cxxomfort::fix::shuffle_order_engine

struct cxxomfort::fix::shuffle_order_engine

template<typename Engine, unsigned K>
struct cxxomfort::fix::shuffle_order_engine< Engine, K >

Forwarder for std::shuffle_order_engine.

<random>:
Forwarder.

Some compilers, such as MSVC 2008, 2010, don't implement shuffle_order_engine , and some other compilers don't implement it at all. This name will redirect to cxxomfort's implementation in those cases, or to std::shuffle_order_engine otherwise.