tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
uniform_int_distribution< IntType > Struct Template Reference

#include <uniform_int_distribution.hpp>

Classes

struct  param_type
 

Public Types

using result_type = IntType
 

Public Member Functions

constexpr uniform_int_distribution ()
 
constexpr uniform_int_distribution (IntType a, IntType b=numeric_limits< IntType >::max())
 
constexpr uniform_int_distribution (param_type const &parm)
 
constexpr auto a () const -> result_type
 
constexpr auto b () const -> result_type
 
constexpr auto max () const -> result_type
 
constexpr auto min () const -> result_type
 
template<typename URBG >
constexpr auto operator() (URBG &g) noexcept(noexcept(g())) -> result_type
 
template<typename URBG >
constexpr auto operator() (URBG &g, param_type const &parm) noexcept(noexcept(g())) -> result_type
 
constexpr auto param () const -> param_type
 
constexpr auto param (param_type const &parm) -> void
 
constexpr auto reset () -> void
 

Friends

constexpr auto operator== (uniform_int_distribution const &x, uniform_int_distribution const &y) -> bool
 

Member Typedef Documentation

◆ result_type

Constructor & Destructor Documentation

◆ uniform_int_distribution() [1/3]

template<typename IntType = int>
constexpr uniform_int_distribution ( )
inlineconstexpr

◆ uniform_int_distribution() [2/3]

template<typename IntType = int>
constexpr uniform_int_distribution ( param_type const parm)
inlineexplicitconstexpr

◆ uniform_int_distribution() [3/3]

template<typename IntType = int>
constexpr uniform_int_distribution ( IntType  a,
IntType  b = numeric_limits<IntType>::max() 
)
inlineexplicitconstexpr

Member Function Documentation

◆ a()

template<typename IntType = int>
constexpr auto a ( ) const -> result_type
inlineconstexpr

◆ b()

template<typename IntType = int>
constexpr auto b ( ) const -> result_type
inlineconstexpr

◆ max()

template<typename IntType = int>
constexpr auto max ( ) const -> result_type
inlineconstexpr

◆ min()

template<typename IntType = int>
constexpr auto min ( ) const -> result_type
inlineconstexpr

◆ operator()() [1/2]

template<typename IntType = int>
template<typename URBG >
constexpr auto operator() ( URBG g) -> result_type
inlineconstexprnoexcept

◆ operator()() [2/2]

template<typename IntType = int>
template<typename URBG >
constexpr auto operator() ( URBG g,
param_type const parm 
) -> result_type
inlineconstexprnoexcept

◆ param() [1/2]

template<typename IntType = int>
constexpr auto param ( ) const -> param_type
inlineconstexpr

◆ param() [2/2]

template<typename IntType = int>
constexpr auto param ( param_type const parm) -> void
inlineconstexpr

◆ reset()

template<typename IntType = int>
constexpr auto reset ( ) -> void
inlineconstexpr

Friends And Related Symbol Documentation

◆ operator==


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