di 0.1.0
Loading...
Searching...
No Matches
di::math::NumericLimits< T > Struct Template Reference

#include <di/math/numeric_limits.h>

Public Types

using Unsigned = meta::MakeUnsigned<T>
 

Static Public Attributes

static constexpr T max = static_cast<T>(-1)
 
static constexpr T min = 0
 
static constexpr int bits = sizeof(T) * 8
 
static constexpr int digits = bits
 

Member Typedef Documentation

◆ Unsigned

template<concepts::UnsignedInteger T>
using di::math::NumericLimits< T >::Unsigned = meta::MakeUnsigned<T>

Member Data Documentation

◆ bits

template<concepts::UnsignedInteger T>
static constexpr int di::math::NumericLimits< T >::bits = sizeof(T) * 8
staticconstexpr

◆ digits

template<concepts::UnsignedInteger T>
static constexpr int di::math::NumericLimits< T >::digits = bits
staticconstexpr

◆ max

template<concepts::UnsignedInteger T>
static constexpr T di::math::NumericLimits< T >::max = static_cast<T>(-1)
staticconstexpr

◆ min

template<concepts::UnsignedInteger T>
static constexpr T di::math::NumericLimits< T >::min = 0
staticconstexpr

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