[#mp_units-get_quantity_spec-03] = xref:mp_units.adoc[mp_units]::get_quantity_spec :relfileprefix: ../ :mrdocs: `get_quantity_spec` overloads == Synopses Declared in `<mp‐units/framework/quantity_point.h>` Returns the quantity specification of a reference [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] consteval xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto xref:mp_units/get_quantity_spec-0f.adoc[get_quantity_spec](xref:mp_units/reference-0b2.adoc[reference] r); ---- [.small]#xref:mp_units/get_quantity_spec-0f.adoc[_» more..._]# Returns the quantity specification of a reference whose `Q` is marked `final` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated("2.6.0: `Q` definition should not be marked `final`"), nodiscard]] consteval xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto xref:mp_units/get_quantity_spec-004.adoc[get_quantity_spec](xref:mp_units/reference-0b2.adoc[reference] r) requires std::is_final_v<Q>; ---- [.small]#xref:mp_units/get_quantity_spec-004.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/PointOrigin.adoc[PointOrigin] PO> [[nodiscard]] consteval xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto xref:mp_units/get_quantity_spec-0ca7.adoc[get_quantity_spec](PO po); ---- [.small]#xref:mp_units/get_quantity_spec-0ca7.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/PointOrigin.adoc[PointOrigin] PO> [[nodiscard]] consteval xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto xref:mp_units/get_quantity_spec-05.adoc[get_quantity_spec](PO po); ---- [.small]#xref:mp_units/get_quantity_spec-05.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/Unit.adoc[Unit] U> requires std::is_final_v<decltype(detail::get_associated_quantity(U{}))> [[deprecated("2.6.0: `quantity_spec` definition of `U` should not be marked `final`"), nodiscard]] consteval xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto xref:mp_units/get_quantity_spec-08.adoc[get_quantity_spec](U); ---- [.small]#xref:mp_units/get_quantity_spec-08.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/Unit.adoc[Unit] U> requires std::is_final_v<decltype(detail::get_associated_quantity(U{}))> [[deprecated("2.6.0: `quantity_spec` definition of `U` should not be marked `final`"), nodiscard]] consteval xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto xref:mp_units/get_quantity_spec-01.adoc[get_quantity_spec](U); ---- [.small]#xref:mp_units/get_quantity_spec-01.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/Unit.adoc[Unit] U> requires std::is_final_v<decltype(detail::get_associated_quantity(U{}))> [[deprecated("2.6.0: `quantity_spec` definition of `U` should not be marked `final`"), nodiscard]] consteval xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto xref:mp_units/get_quantity_spec-0ca6.adoc[get_quantity_spec](U); ---- [.small]#xref:mp_units/get_quantity_spec-0ca6.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/Unit.adoc[Unit] U> requires std::is_final_v<decltype(detail::get_associated_quantity(U{}))> [[deprecated("2.6.0: `quantity_spec` definition of `U` should not be marked `final`"), nodiscard]] consteval xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto xref:mp_units/get_quantity_spec-00a.adoc[get_quantity_spec](U); ---- [.small]#xref:mp_units/get_quantity_spec-00a.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/Unit.adoc[Unit] U> requires std::is_final_v<decltype(detail::get_associated_quantity(U{}))> [[deprecated("2.6.0: `quantity_spec` definition of `U` should not be marked `final`"), nodiscard]] consteval xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto xref:mp_units/get_quantity_spec-060.adoc[get_quantity_spec](U); ---- [.small]#xref:mp_units/get_quantity_spec-060.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/Unit.adoc[Unit] U> requires std::is_final_v<decltype(detail::get_associated_quantity(U{}))> [[deprecated("2.6.0: `quantity_spec` definition of `U` should not be marked `final`"), nodiscard]] consteval xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto xref:mp_units/get_quantity_spec-068.adoc[get_quantity_spec](U); ---- [.small]#xref:mp_units/get_quantity_spec-068.adoc[_» more..._]# == Return Value the quantity specification `Q` [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *r* | the reference to query |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#