mp_units::get_dimension¶
Synopsis¶
Declared in <mp-units/framework/quantity_spec_definitions.h>
template<QuantitySpec QS>
[[nodiscard]] consteval Dimension auto get_dimension(QS qs);
Note
This function is a hidden friend of quantity_spec<QS, Args...>, 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.