mp_units::operator+

Addition operator

Synopsis

Declared in <mp-units/framework/symbol_text.h>

template<
    std::size_t N,
    std::size_t M,
    std::size_t N2,
    std::size_t M2>
[[nodiscard]]
constexpr
symbol_text<N + N2, M + M2>
operator+(
    symbol_text<N, M> const& lhs,
    symbol_text<N2, M2> const& rhs);

NOTE

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

Return Value

A symbol text representation

NOTE

The return value should not be discarded.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand