23#ifndef VCL_MISC_COMPACTNESS_H
24#define VCL_MISC_COMPACTNESS_H
26#include <vclib/types.h>
51template<
typename T,
typename... Args>
53 std::vector<T, Args...>& vec,
54 const std::vector<uint>& newIndices)
56 assert(vec.size() == newIndices.size());
58 for (uint i = 0; i < newIndices.size(); ++i) {
61 if (newIndices[i] != i) {
64 vec[newIndices[i]] = std::move(vec[i]);
constexpr uint UINT_NULL
The UINT_NULL value represent a null value of uint that is the maximum value that can be represented ...
Definition base.h:48