Deduces a quantity from a numerical value and an explicit reference.

Synopsis

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

template<
    Reference R,
    typename Value>
requires RepresentationOf<representation_canonical_type_t<Value>, get_quantity_spec(R{})>
quantity<R{}, representation_canonical_type_t<Value>>(
    Value v,
    R) → quantity<R{}, representation_canonical_type_t<Value>>;

Template Parameters

Name

Description

R

the reference type

Value

the numerical value type

Created with MrDocs