Skip to content

num::swap_remove

Defined in header <container/swap_remove.hpp>

template <typename T>
void swap_remove(array<T> &values, view<const idx> removed);

Remove the elements at removed by moving elements from the end into their places.

Warning

Moved elements change index; use swap_remove_map to repair indices held elsewhere.