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

Name

Description

Q

quantity specification type

Parameters

Name

Description

q

quantity specification value

Created with MrDocs