Skip to content

mp_units::utility::operator*

Multiplication operator

Synopsis

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

template<typename T, std::size_t N, typename U>
  requires(!Reference<T>) && (!Quantity<T>) && requires(const T& t, const U& u) { t * u; }
[[nodiscard]] constexpr auto operator*(T const& lhs, cartesian_vector<U, N> const& rhs);

Note

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

Return Value

Note

The return value should not be discarded.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand