kblib 0.2.3
General utilities library for modern C++
kblib::shift_mask< UIntType, shift, mask > Struct Template Reference

#include <kblib/random.h>

Public Types

using result_type = UIntType
 

Public Member Functions

constexpr auto operator() (UIntType in) const noexcept -> UIntType
 

Static Public Member Functions

template<typename UIntInput >
static constexpr auto g (UIntInput in) noexcept -> UIntType
 
static constexpr auto min (UIntType min, UIntType max) noexcept -> UIntType
 
static constexpr auto max (UIntType min, UIntType max) noexcept -> UIntType
 

Detailed Description

template<typename UIntType, UIntType shift, UIntType mask = max>
struct kblib::shift_mask< UIntType, shift, mask >

Definition at line 295 of file random.h.

Member Typedef Documentation

◆ result_type

template<typename UIntType , UIntType shift, UIntType mask = max>
using kblib::shift_mask< UIntType, shift, mask >::result_type = UIntType

Definition at line 296 of file random.h.

Member Function Documentation

◆ g()

template<typename UIntType , UIntType shift, UIntType mask = max>
template<typename UIntInput >
static constexpr auto kblib::shift_mask< UIntType, shift, mask >::g ( UIntInput  in) -> UIntType
inlinestaticconstexprnoexcept

Definition at line 299 of file random.h.

◆ max()

template<typename UIntType , UIntType shift, UIntType mask = max>
static constexpr auto kblib::shift_mask< UIntType, shift, mask >::max ( UIntType  min,
UIntType  max 
) -> UIntType
inlinestaticconstexprnoexcept

Definition at line 311 of file random.h.

◆ min()

template<typename UIntType , UIntType shift, UIntType mask = max>
static constexpr auto kblib::shift_mask< UIntType, shift, mask >::min ( UIntType  min,
UIntType  max 
) -> UIntType
inlinestaticconstexprnoexcept

Definition at line 306 of file random.h.

◆ operator()()

template<typename UIntType , UIntType shift, UIntType mask = max>
constexpr auto kblib::shift_mask< UIntType, shift, mask >::operator() ( UIntType  in) const -> UIntType
inlineconstexprnoexcept

Definition at line 302 of file random.h.


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