Skip to content

mp_units::utility::operator==

Equality operator

Synopsis

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

template<typename T, std::size_t N, std::equality_comparable_with<T> U>
[[nodiscard]] constexpr bool 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

true if the objects are equal, false otherwise

Note

The return value should not be discarded.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand