Skip to content

num::remove_indices

Defined in header <container/swap_remove.hpp>

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

Remove the elements at removed, keeping the others in order.

Exceptions

  • std::out_of_range: If an index is not less than values.size().