[#mp_units-get_dimension-0f] = xref:mp_units.adoc[mp_units]::get_dimension :relfileprefix: ../ :mrdocs: == Synopsis Declared in `<mp‐units/framework/quantity_spec_definitions.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/QuantitySpec.adoc[QuantitySpec] QS> [[nodiscard]] consteval xref:mp_units/Dimension.adoc[Dimension] auto get_dimension(QS qs); ---- [NOTE] ==== This function is a https://en.cppreference.com/w/cpp/language/friend[hidden friend] of xref:mp_units/quantity_spec-0a6.adoc[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 https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#