Skip to content

mp_units::operator*

Multiplication operator

Synopsis

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

template<typename FwdRep, Reference R,
         RepresentationOf<get_quantity_spec(R{})> Rep = std::remove_cvref_t<FwdRep>>
  requires(!OffsetUnit<decltype(get_unit(R{}))>)
[[nodiscard]] constexpr quantity<R{}, Rep> operator*(FwdRep && lhs, R r);

Note

This function is a hidden friend of prefixed_unit, declared inside an implementation-defined base class: it can be found only through argument-dependent lookup.

Return Value

A quantity

Note

The return value should not be discarded.

Parameters

NameDescription
lhsThe left operand
rThe right operand