mp_units::quantity<R, representation_canonical_type_t<Value>>

Deduces a quantity from a numerical value alone, using the one reference by default.

Synopsis

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

template<
    Reference auto R = one,
    typename Value>
requires RepresentationOf<representation_canonical_type_t<Value>, get_quantity_spec(R)>
quantity<R, representation_canonical_type_t<Value>>(Value) -> quantity<R, representation_canonical_type_t<Value>>;

Template Parameters

NameDescription
Rthe reference to use, defaulting to one
Valuethe numerical value type