Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
arene::base::numbers Namespace Reference

Variable Documentation

◆ one< T >::value

template<typename T>
T arene::base::numbers::one< T >::value
constexpr

◆ one_v

template<typename T>
const& arene::base::numbers::one_v {one<T>::value}
constexpr

constexpr reference to the multiplicative identity value one<T>::value .

Template Parameters
Tnumeric type

Binds a constexpr reference to one<T>::value , so it is valid for every specialization, including one whose value is not usable in a constant expression. Reading the accessor within a constant expression additionally requires that one<T>::value itself be usable in a constant expression.

◆ pi_v

template<typename Type>
Type arene::base::numbers::pi_v {pi_detail::pi_v<Type>}
externconstexpr

The value of Pi, in the specified floating point type. Type must be float or double , or a type for which an explicit specialization of pi_v has been made.

Template Parameters
TypeThe chosen type

◆ zero< T >::value

template<typename T>
T arene::base::numbers::zero< T >::value
constexpr

◆ zero_v

template<typename T>
const& arene::base::numbers::zero_v {zero<T>::value}
constexpr

constexpr reference to the additive identity value zero<T>::value .

Template Parameters
Tnumeric type

Binds a constexpr reference to zero<T>::value , so it is valid for every specialization, including one whose value is not usable in a constant expression. Reading the accessor within a constant expression additionally requires that zero<T>::value itself be usable in a constant expression.