Skip to content

mp_units::get_quantity_spec

Synopsis

Declared in <mp-units/framework/reference.h>

[[deprecated("2.6.0: `Q` definition should not be marked `final`"),
  nodiscard]] consteval QuantitySpec auto get_quantity_spec(reference)
  requires std::is_final_v<Q>;

Warning

Deprecated: 2.6.0: `Q` definition should not be marked `final`. Use of this entity is allowed but discouraged.

Note

This function is a hidden friend of reference, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

Note

The return value should not be discarded.