lppl  v2.0.0
distribution_traits.hpp File Reference
#include <string>
#include <utility>

Classes

struct  arity< D >
 How many input arguments does the largest constructor of the distribution have? More...
 
struct  Distribution< Impl, V >
 Abstract base class that can be subclassed for creation of new distributions. More...
 
struct  input_types< D >
 What are the types passed as arguments to the largest constructor? More...
 
struct  output_dim< D >
 What are the dimensions of the output of calling .sample(...)? More...
 

Typedefs

template<typename D >
using DSType = decltype(std::declval< D >().sample(COMPILE_TIME_MOCK_PRNG))
 The return type of calling sample on a distribution object. More...
 

Variables

constexpr auto COMPILE_TIME_MOCK_PRNG = [](){ return 2022ULL; }
 Used to determine the type of a distribution's sample return value at compile time.
 

Detailed Description

Author
David Dewhurst (drd@d.nosp@m.avid.nosp@m.rushi.nosp@m.ngde.nosp@m.whurs.nosp@m.t.co.nosp@m.m)
Version
0.1
Date
2024-02-16