Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Algo/RemoveIf.h |
Include |
#include "Algo/RemoveIf.h" |
namespace Algo
{
template<typename RangeType, typename Predicate>
int32 Algo::RemoveIf
(
RangeType & Range,
Predicate Pred
)
}
Moves all elements which do not match the predicate to the front of the range, while leaving all other elements is a constructed but unspecified state. The elements which were not removed are not guaranteed to be kept in order (unstable).
The index of the first element after those which were not removed.
Parameter |
Description |
---|---|
Range |
The range of elements to manipulate. |
Pred |
A callable which maps elements to truthy values, specifying elements to be removed. |