mp_units::operator+

Addition operator

Synopsis

Declared in <mp-units/ext/fixed_string.h>

template<
    typename CharT,
    std::size_t N>
[[nodiscard]]
constexpr
basic_fixed_string<CharT, 1 + N>
operator+(
    CharT const lhs,
    basic_fixed_string<CharT, N> const& rhs) noexcept;

NOTE

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

Return Value

A compile-time fixed string

NOTE

The return value should not be discarded.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand