fennec
Loading...
Searching...
No Matches
fennec::numeric_limits< TypeT >

Helper for getting traits of a numeric type. More...

#include <limits.h>

Detailed Description

template<typename TypeT>
struct fennec::numeric_limits< TypeT >
Template Parameters
TypeTNumeric types, may be overloaded for custom types

Static Public Member Functions

static constexpr TypeT min ()
 Returns the minimum finite value of TypeT.
 
static constexpr TypeT max ()
 Returns the maximum finite value of TypeT.
 
static constexpr TypeT lowest ()
 Returns the smallest positive value of TypeT.
 
static constexpr TypeT epsilon ()
 Returns the difference between 1.0 and the next representable value.
 
static constexpr TypeT round_error ()
 Returns the max rounding error of TypeT.
 
static constexpr TypeT infinity ()
 Returns a value of TypeT holding a positive infinity.
 
static constexpr TypeT quiet_NaN ()
 Returns a value of TypeT holding a quiet NaN.
 
static constexpr TypeT signaling_NaN ()
 Returns a value of TypeT holding a signaling NaN.
 
static constexpr TypeT denorm_min ()
 Returns a value of TypeT holding the smallest positive subnormal.
 

Static Public Attributes

static constexpr bool is_specialized = false
 Check if the template is specialized for TypeT.
 
static constexpr bool is_signed = false
 Check if TypeT is signed.
 
static constexpr bool is_integer = false
 Check if TypeT is of an integral type.
 
static constexpr bool is_exact = false
 Check if TypeT is exact in its precision.
 
static constexpr bool has_infinity = false
 Check if TypeT can hold a value representing infinity.
 
static constexpr bool has_quiet_nan = false
 Check if TypeT can hold a non-signaling nan.
 
static constexpr bool has_signaling_nan = false
 Check if TypeT can hold a signaling nan.
 
static constexpr bool has_denorm = false
 Check if TypeT denormalizes.
 
static constexpr bool has_denorm_loss = false
 Check if TypeT has precision loss when denormalized.
 
static constexpr bool is_iec559 = false
 Check if a TypeT representing a float is IEC 559 or IEEE 754.
 
static constexpr bool is_bounded = false
 Check if TypeT represents a finite set of values.
 
static constexpr bool is_modulo = false
 Check if TypeT can handle modulo arithmetic.
 
static constexpr bool tinyness_before = false
 Check if TypeT checks for tinyness before rounding.
 
static constexpr bool traps = false
 Check if TypeT can cause operations to trap.
 
static constexpr int radix = 0
 Get the base representation of the type.
 
static constexpr int digits = 0
 Get the number of radix digits TypeT represents.
 
static constexpr int digits10 = 0
 Get the number of decimal digits TypeT represents.
 
static constexpr int max_digits10 = 0
 Get the maximum number of decimal digits TypeT represents.
 
static constexpr int min_exponent = 0
 Get the minimum number of radix digits that represent the exponent of TypeT.
 
static constexpr int min_exponent10 = 0
 Get the minimum number of decimal digits that represent the exponent of TypeT.
 
static constexpr int max_exponent = 0
 Get the maximum number of radix digits that represent the exponent of TypeT.
 
static constexpr int max_exponent10 = 0
 Get the maximum number of decimal digits that represent the exponent of TypeT.
 
static constexpr float_round_style rounding_style = round_indeterminate
 The rounding style of TypeT.
 

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