mp_units::get_unit

Synopsis

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

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

NOTE

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

Return Value

NOTE

The return value should not be discarded.