Template Function navtk::utils::remove_at_indices

Function Documentation

template<typename T>
void navtk::utils::remove_at_indices(std::vector<T> &data, const std::vector<Size> &to_remove)

Remove elements from vector of data based on a set of indices.

Template Parameters

T – Data type stored in vector.

Parameters
  • data – The vector to remove elements from.

  • to_remove – Indices of elements to remove. Should be sorted.