libfxd 0.2.dev
A fixed-point library for C++.
Loading...
Searching...
No Matches
uniform_real_distribution< Fxd >::param_type Class Reference

Analogous to std::uniform_real_distribution::param_type More...

#include <random.hpp>

Public Member Functions

constexpr param_type ()
 
constexpr param_type (result_type a_, result_type b_=std::numeric_limits< result_type >::max())
 Construct from min and max range.
 
constexpr result_type a () const noexcept
 Minimum value.
 
constexpr result_type b () const noexcept
 Maximum value.
 
bool operator== (const param_type &other) const noexcept=default
 Defaulted == operator.
 

Detailed Description

template<fixed_point Fxd>
class fxd::uniform_real_distribution< Fxd >::param_type

Analogous to std::uniform_real_distribution::param_type

Definition at line 34 of file random.hpp.

Constructor & Destructor Documentation

◆ param_type() [1/2]

constexpr param_type ( )
inlineconstexpr

Definition at line 41 of file random.hpp.

◆ param_type() [2/2]

constexpr param_type ( result_type  a_,
result_type  b_ = std::numeric_limits<result_type>::max() 
)
inlineexplicitconstexpr

Construct from min and max range.

Parameters
a_minimum value.
b_maximum value (inclusive).

Definition at line 52 of file random.hpp.

Member Function Documentation

◆ a()

constexpr result_type a ( ) const
inlineconstexprnoexcept

Minimum value.

Definition at line 60 of file random.hpp.

◆ b()

constexpr result_type b ( ) const
inlineconstexprnoexcept

Maximum value.

Definition at line 64 of file random.hpp.

◆ operator==()

bool operator== ( const param_type other) const
defaultnoexcept

Defaulted == operator.


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