Returns the unit of a reference

Synopses

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

Returns the unit of a reference

[[nodiscard]]
consteval
Unit auto
get_unit(reference r);
template<Unit Self>
[[nodiscard]]
consteval
Self
get_unit(Self self);
template<Unit Self>
[[nodiscard]]
consteval
Self
get_unit(Self self);
template<Unit Self>
[[nodiscard]]
consteval
Self
get_unit(Self self);
template<Unit Self>
[[nodiscard]]
consteval
Self
get_unit(Self self);
template<Unit Self>
[[nodiscard]]
consteval
Self
get_unit(Self self);
template<Unit Self>
[[nodiscard]]
consteval
Self
get_unit(Self self);

Return Value

the unit U

Note

The return value should not be discarded.

Parameters

Name

Description

r

the reference to query

Created with MrDocs