mp_units::operator==

Equality operator

Synopsis

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

template<
    Dimension Lhs,
    Dimension Rhs>
[[nodiscard]]
consteval
bool
operator==(
    Lhs lhs,
    Rhs rhs);

NOTE

This function is a hidden friend of dimension_one, declared inside an implementation-defined base class: it can be found only through argument-dependent lookup.

Return Value

true if the objects are equal, false otherwise

NOTE

The return value should not be discarded.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand