Returns the unit of a reference

Synopsis

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

[[nodiscard]]
consteval
Unit auto
get_unit(reference r);

Return Value

the unit U

Note

The return value should not be discarded.

Parameters

Name

Description

r

the reference to query

Created with MrDocs