Navigation
API > API/Runtime > API/Runtime/Core
Description
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 guaranteed to be kept in order (stable).
| Name | Algo::StableRemoveIf |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/RemoveIf.h |
| Include Path | #include "Algo/RemoveIf.h" |
namespace Algo
{
template<typename RangeType, typename Predicate>
int32 Algo::StableRemoveIf
(
RangeType && Range,
Predicate Pred
)
}
The number of elements that should be kept.
Parameters
| Name | Remarks |
|---|---|
| Range | The range of elements to manipulate. |
| Pred | A callable which maps elements to truthy values, specifying elements to be removed. |