<tt>xoshiro
Loading...
Searching...
No Matches
xso::Distribution

A C++ concept that lets us distinguish standard distribution types from other types. More...

#include <xoshiro.h>

Concept definition

template<typename Dist>
concept xso::Distribution = requires { typename Dist::param_type; }
A C++ concept that lets us distinguish standard distribution types from other types.
Definition xoshiro.h:46

Detailed Description

A C++ concept that lets us distinguish standard distribution types from other types.

We overload the xso::generator::sample method and use this concept to select one of those overloads.

Note

Standard distributions all define a typename param_type which is not present in any of the container types.