get_quantity_spec overloads
Synopses
Declared in <mp‐units/framework/quantity_point.h>
Returns the quantity specification of a reference
[[nodiscard]]
consteval
QuantitySpec auto
get_quantity_spec(reference r);
Returns the quantity specification of a reference whose Q is marked final
[[deprecated("2.6.0: `Q` definition should not be marked `final`"), nodiscard]]
consteval
QuantitySpec auto
get_quantity_spec(reference r)
requires std::is_final_v<Q>;
template<PointOrigin PO>
[[nodiscard]]
consteval
QuantitySpec auto
get_quantity_spec(PO po);
template<PointOrigin PO>
[[nodiscard]]
consteval
QuantitySpec auto
get_quantity_spec(PO po);
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);
Return Value
the quantity specification Q
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
r |
the reference to query |
Created with MrDocs