Checks whether a reference is equal to a unit

Synopsis

Declared in <mp‐units/framework/reference.h>

[[nodiscard]]
consteval
bool
operator==(
    reference r,
    U2 u2);

Return Value

true if the reference's quantity specification and unit match those implied by u2

Note

The return value should not be discarded.

Parameters

Name

Description

r

the reference to compare

u2

the unit to compare against

Created with MrDocs