Constructs a quantity from a representation value and a reference
Synopsis
Declared in <mp‐units/framework/reference.h>
template<
typename FwdRep,
Reference R,
RepresentationOf<get_quantity_spec(R{})> Rep = std::remove_cvref_t<FwdRep>>
requires (!detail::OffsetUnit<decltype(get_unit(R{}))>)
[[nodiscard]]
constexpr
quantity<R{}, Rep>
operator*(
FwdRep&& lhs,
R r);
Return Value
quantity of reference r holding the value of lhs
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
lhs |
representation value to become the quantity's numerical value |
r |
reference defining the quantity specification and unit |
Created with MrDocs