xte::array<T>::push_range()

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


Definition

template<typename Range = xte::array<T>>
constexpr auto push_range(Range&& range) & XTE_ARROW(
	this->insert_range(-1uz, XTE_FWD(range)
)
Appends elements from the given range to the back of the array.



Example

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