mp_units::get_unit

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);
» more...
template<Unit Self>
[[nodiscard]]
consteval
Self
get_unit(Self self);
» more...
template<Unit Self>
[[nodiscard]]
consteval
Self
get_unit(Self self);
» more...
template<Unit Self>
[[nodiscard]]
consteval
Self
get_unit(Self self);
» more...
template<Unit Self>
[[nodiscard]]
consteval
Self
get_unit(Self self);
» more...
template<Unit Self>
[[nodiscard]]
consteval
Self
get_unit(Self self);
» more...
template<Unit Self>
[[nodiscard]]
consteval
Self
get_unit(Self self);
» more...

Return Value

the unit U

NOTE

The return value should not be discarded.

Parameters

NameDescription
rthe reference to query