CleanupPointerMap

Given a [TMap](API\Runtime\Core\Containers\TMap) 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 KeyType, class ValueType>
void CleanupPointerMap
(
    TMap< TWeakPtr< KeyType >, ValueType > & PointerMap
)

Remarks

Given a TMap of TWeakPtr's, will remove any invalid pointers. Not the most efficient.

Parameters

Parameter

Description

PointerMap

The pointer map 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