[#mp_units-get_kind] = xref:mp_units.adoc[mp_units]::get_kind :relfileprefix: ../ :mrdocs: Returns the kind of a quantity specification == Synopsis Declared in `<mp‐units/framework/quantity_spec_conversion.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/QuantitySpec.adoc[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 https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Template Parameters [cols="1,4"] |=== | Name| Description | *Q* | quantity specification type |=== == Parameters [cols="1,4"] |=== | Name| Description | *q* | quantity specification value |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#