mp_units::utility::operator+¶
Addition operator
Synopsis¶
Declared in <mp-units/utility/cartesian_vector.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_vector<T, N> 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¶
| Name | Description |
|---|---|
| lhs | The left operand |
| rhs | The right operand |