mp_units::get_kind

Returns the kind of a quantity specification

Synopsis

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

template<QuantitySpec Q>
[[nodiscard]]
consteval
/* implementation-defined */ auto
get_kind(Q q);

Description

The kind is obtained by walking up to the root of the quantity's hierarchy tree.

Return Value

the quantity kind of the argument

NOTE

The return value should not be discarded.

Template Parameters

NameDescription
Qquantity specification type

Parameters

NameDescription
qquantity specification value