mp_units::iec::get_quantity_spec¶
Synopses¶
Declared in <mp-units/framework/unit_definitions.h>
template<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 QuantitySpec auto get_quantity_spec(U);
template<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 QuantitySpec auto get_quantity_spec(U);
template<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 QuantitySpec auto get_quantity_spec(U);
template<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 QuantitySpec auto get_quantity_spec(U);
template<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 QuantitySpec auto get_quantity_spec(U);
template<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 QuantitySpec auto get_quantity_spec(U);
template<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 QuantitySpec auto get_quantity_spec(U);
template<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 QuantitySpec auto get_quantity_spec(U);
Warning
Deprecated: 2.6.0: `quantity_spec` definition of `U` should not be marked `final`. Use of this entity is allowed but discouraged.
Return Value¶
Note
The return value should not be discarded.