Skip to content

mp_units::utility::operator-

Subtraction operator

Synopsis

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

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

Note

This function is a hidden friend of cartesian_tensor, 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