mp_units::utility::metrologically_compatible¶
metrologically_compatible(lhs, rhs, 2)
Synopsis¶
Declared in <mp-units/utility/uncertain.h>
template<typename Lhs, typename Rhs>
requires((mp_units::Quantity<Lhs> && mp_units::Quantity<Rhs>) ||
(mp_units::QuantityPoint<Lhs> && mp_units::QuantityPoint<Rhs>)) &&
detail::MeasuredOrExact<Lhs, uncertain> &&
detail::MeasuredOrExact<Rhs, uncertain> &&
requires(const Lhs& lhs, const Rhs& rhs) { lhs - rhs; }
[[nodiscard]] constexpr bool metrologically_compatible(Lhs const& lhs, Rhs const& rhs);
Note
This function is a hidden friend of uncertain, declared only inside that class: it can be found only through argument-dependent lookup.
Return Value¶
Note
The return value should not be discarded.