mp_units::is_lteq_zero

Checks whether v compares less than or equal to T::zero()

Synopsis

Declared in <mp-units/framework/compare.h>

template<typename T>
requires requires {
    { T::zero() } -> std::three_way_comparable_with<T>;
  }
[[deprecated("2.6.0: compare against literal `0` instead"), nodiscard]]
constexpr
bool
is_lteq_zero(T v);

WARNING

Deprecated: 2.6.0: compare against literal `0` instead. Use of this entity is allowed but discouraged.

Return Value

true if v <= T::zero(), false otherwise

NOTE

The return value should not be discarded.

Parameters

NameDescription
vThe value to compare against T::zero()