CleanupPointerArray

Given a [TArray](API\Runtime\Core\Containers\TArray) of [TWeakPtr](API\Runtime\Core\Templates\TWeakPtr)'s, will remove any invalid pointers.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h

Include

#include "Templates/SharedPointer.h"

Syntax

template<class Type>
void CleanupPointerArray
(
    TArray< TWeakPtr< Type > > & PointerArray
)

Remarks

Given a TArray of TWeakPtr's, will remove any invalid pointers.

Parameters

Parameter

Description

PointerArray

The pointer array to prune invalid pointers out of

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