xte::array<T>::operator+=()

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


Definition

constexpr auto operator+=(this auto& lhs, auto&& rhs) XTE_ARROW(/* ... */)
Appends elements to the end of the array with .push_range().



Example

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