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®>
quantity<R, representation_canonical_type_t<Value>>(Value) → quantity<R, representation_canonical_type_t<Value>>;
Template Parameters
Name |
Description |
R |
the reference to use, defaulting to |
Value |
the numerical value type |
Created with MrDocs