TArray::RemoveAllSwap

Remove all instances that match the predicate

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 RemoveAllSwap
(
    const PREDICATE_CLASS & Predicate,
    bool bAllowShrinking
)

Remarks

Remove all instances that match the predicate

Parameters

Parameter

Description

Predicate

Predicate class instance

bAllowShrinking

Tell if this function can shrink the memory in-use if suitable.

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