xte::fixed_array<T, n>::operator+()

Defined in header <xte/data/fixed_array.hpp>


Definition

template<typename Rhs>
requires(xte::is_derived_from_instance_of<xte::remove_cvref<Rhs>, ^^xte::fixed_array>
	&& xte::is_same<T, typename Rhs::value_type>)
[[nodiscard]] constexpr auto operator+(this auto&& lhs, Rhs&& rhs) XTE_ARROW(/* ... */)



Example

std::println("{}", xte::fixed_array { 1, 2 } + xte::fixed_array { 3, 4 });
Output:
[1, 2, 3, 4]
[View in Compiler Explorer]