TArray::RemoveAll

Remove all instances that match the predicate, maintaining order but not indices Optimized to work with runs of matches/non-matches

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/Array.h

Include

#include "Containers/Array.h"

Syntax

template<class PREDICATE_CLASS>
SizeType RemoveAll
(
    const PREDICATE_CLASS & Predicate
)

Remarks

Remove all instances that match the predicate, maintaining order but not indices Optimized to work with runs of matches/non-matches

Returns

Number of removed elements.

Parameters

Parameter

Description

Predicate

Predicate class instance

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss