Skip to content

num::swap_remove_plan

Defined in header <container/swap_remove.hpp>

array<index_move> swap_remove_plan(idx n, view<const idx> removed);

Plan the moves that fill each removed slot from the end of the array. removed must be distinct.

Exceptions

  • std::out_of_range: If an index is not less than n.