![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
The additive identity of T.
More...
Static Public Attributes | |
| static constexpr T | value {} |
| The additive identity value. | |
The additive identity of T.
| T | numeric type |
Provides access to the additive identity of T through its static member value . This value is the additive identity; a + zero<T>::value == a and zero<T>::value + a == a are true for valid values of a of type T .
Users may specialize zero for cv-unqualified program-defined types. Such specializations shall have a static member value with type T whose value is the additive identity of T . A specialization is required if any of the following cases are true for the expression T{} :
Because zero_v binds a reference to value , every specialization must also provide a namespace-scope definition of value (a separate out-of-line definition, as required for ODR use in C++14); otherwise naming zero_v for that type is ill-formed.
|
staticconstexpr |
The additive identity value.