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

template<typename IntType = int>
using result_type = IntType

Constructor & Destructor Documentation

◆ uniform_int_distribution() [1/3]

template<typename IntType = int>
uniform_int_distribution ( )
inlineconstexpr

◆ uniform_int_distribution() [2/3]

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

◆ uniform_int_distribution() [3/3]

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

Member Function Documentation

◆ a()

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

◆ b()

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

◆ max()

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

◆ min()

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

◆ operator()() [1/2]

template<typename IntType = int>
template<typename URBG>
auto operator() ( URBG & g) -> result_type
inlinenodiscardconstexprnoexcept

◆ operator()() [2/2]

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

◆ param() [1/2]

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

◆ param() [2/2]

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

◆ reset()

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

Friends And Related Symbol Documentation

◆ operator==

template<typename IntType = int>
auto operator== ( uniform_int_distribution< IntType > const & x,
uniform_int_distribution< IntType > const & y ) -> bool
friend

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