|
template<builtin_integer T, builtin_integer U> |
constexpr auto | cmp_equal (T t, U u) noexcept -> bool |
| Compare the values of two integers t and u. Unlike builtin comparison operators, negative signed integers always compare less than (and not equal to) unsigned integers: the comparison is safe against lossy integer conversion.
|
|
template<builtin_integer T, builtin_integer U> |
constexpr auto | cmp_greater (T t, U u) noexcept -> bool |
| Compare the values of two integers t and u. Unlike builtin comparison operators, negative signed integers always compare less than (and not equal to) unsigned integers: the comparison is safe against lossy integer conversion.
|
|
template<builtin_integer T, builtin_integer U> |
constexpr auto | cmp_greater_equal (T t, U u) noexcept -> bool |
| Compare the values of two integers t and u. Unlike builtin comparison operators, negative signed integers always compare less than (and not equal to) unsigned integers: the comparison is safe against lossy integer conversion.
|
|
template<builtin_integer T, builtin_integer U> |
constexpr auto | cmp_less (T t, U u) noexcept -> bool |
| Compare the values of two integers t and u. Unlike builtin comparison operators, negative signed integers always compare less than (and not equal to) unsigned integers: the comparison is safe against lossy integer conversion.
|
|
template<builtin_integer T, builtin_integer U> |
constexpr auto | cmp_less_equal (T t, U u) noexcept -> bool |
| Compare the values of two integers t and u. Unlike builtin comparison operators, negative signed integers always compare less than (and not equal to) unsigned integers: the comparison is safe against lossy integer conversion.
|
|
template<builtin_integer T, builtin_integer U> |
constexpr auto | cmp_not_equal (T t, U u) noexcept -> bool |
| Compare the values of two integers t and u. Unlike builtin comparison operators, negative signed integers always compare less than (and not equal to) unsigned integers: the comparison is safe against lossy integer conversion.
|
|
template<builtin_integer R, builtin_integer T> |
constexpr auto | in_range (T t) noexcept -> bool |
| Returns true if the value of t is in the range of values that can be represented in R, that is, if t can be converted to R without data loss.
|
|
Various utility components.