mp_units::operator*

Rebinds a quantity to a reference obtained by multiplying its own reference by R

Synopsis

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

template<
    typename FwdQ,
    Reference R,
    Quantity Q = std::remove_cvref_t<FwdQ>>
[[nodiscard]]
constexpr
Quantity auto
operator*(
    FwdQ&& q,
    R r);

Return Value

quantity holding the same numerical value as q, with reference Q::reference * R{}

NOTE

The return value should not be discarded.

Parameters

NameDescription
qquantity being rebound
rreference to multiply the quantity's reference by