/Engine/Source/Runtime/GeometryCore/Public/Util/BufferUtil.h
Removes elements of array (or within requested range) that do not pass Predicate, by shifting forward. Does not remove remaining elements
Number of valid elements in Data after filtering
namespace BufferUtil { template<typename T> int BufferUtil::FilterInPlace ( [TArray](API\Runtime\Core\Containers\TArray)< T > & Data, const [TFunction](API\Runtime\Core\GenericPlatform\TFunction)< bool(T)> & Predicate, int MaxIndex, int StartIndex ) }