mp_units::utility::operator==

Checks whether two safe_int values wrap equal underlying values.

Synopsis

Declared in <mp-units/utility/safe_int.h>

[[nodiscard]]
constexpr
bool
operator==(
    safe_int lhs,
    safe_int rhs) noexcept;

NOTE

This function is a hidden friend of safe_int, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

true if the wrapped values are equal

NOTE

The return value should not be discarded.

Parameters

NameDescription
lhsthe first value to compare
rhsthe second value to compare