[#mp_units-get-06] = xref:mp_units.adoc[mp_units]::get :relfileprefix: ../ :mrdocs: == Synopsis Declared in `<mp‐units/framework/quantity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto QS, auto R1, typename Rep1> requires DecomposableAxis<get_quantity_spec(R1), Rep1, QS> [[nodiscard]] constexpr xref:mp_units/Quantity-0c.adoc[Quantity] auto get(xref:mp_units/quantity-01.adoc[quantity<R1, Rep1>] const& q); ---- [NOTE] ==== This function is a https://en.cppreference.com/w/cpp/language/friend[hidden friend] of xref:mp_units/quantity-01.adoc[quantity], 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^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *q* | A quantity |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#