/Engine/Source/Runtime/Core/Public/Containers/SparseArray.h
Compacts the allocated elements into a contiguous index range. Does not change the iteration order of the elements. Returns true if any elements were relocated, false otherwise.
bool CompactStable()