Specialization of ntlib::algebra_traits for integral types.
More...
|
| static constexpr T | get_zero () noexcept |
| | Returns the additive neutral element of T.
|
| static constexpr T | get_one () noexcept |
| | Returns the multiplicative neutral element of T.
|
|
|
static constexpr bool | is_additive_commutative = true |
| | Integral addition is commutative.
|
|
static constexpr bool | is_multiplicative_commutative = true |
| | Integral multiplication is commutative.
|
template<std::integral T>
class ntlib::algebra_traits< T >
Specialization of ntlib::algebra_traits for integral types.
- Template Parameters
-
◆ get_one()
template<std::integral T>
|
|
inlinestaticnodiscardconstexprnoexcept |
Returns the multiplicative neutral element of T.
- Returns
- The multiplicative neutral element, i.e., \(1\).
◆ get_zero()
template<std::integral T>
|
|
inlinestaticnodiscardconstexprnoexcept |
Returns the additive neutral element of T.
- Returns
- The additive neutral element, i.e., \(0\).
The documentation for this class was generated from the following file: