Addition operator

Synopsis

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

template<
    typename CharT,
    std::size_t N,
    std::size_t N2>
[[nodiscard]]
consteval
basic_fixed_string<CharT, N + N2 ‐ 1>
operator+(
    basic_fixed_string<CharT, N> const& lhs,
    CharT 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

Name

Description

lhs

The left operand

rhs

The right operand

Created with MrDocs