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, [[maybe_unused]] UIntType max) noexcept -> UIntType
 
static constexpr auto max ([[maybe_unused]] 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 294 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 295 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 298 of file random.h.

◆ max()

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

Definition at line 310 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,
[[maybe_unused] ] UIntType  max 
) -> UIntType
inlinestaticconstexprnoexcept

Definition at line 305 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 301 of file random.h.


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