mp_units::utility::detail::operator*

Multiplication operator

Synopsis

Declared in <mp-units/utility/constrained.h>

[[nodiscard]]
constexpr
constrained<decltype(lhs * rhs.value_), EP>
operator*(
    U const& lhs,
    constrained<T, EP> const& rhs);

Return Value

A transparent wrapper that carries an error policy for domain constraint enforcement.

NOTE

The return value should not be discarded.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand