CleanupPointerMap
Given a [TMap](API\Runtime\Core\Containers\TMap) of [TWeakPtr](API\Runtime\Core\Templates\TWeakPtr)'s, will remove any invalid pointers.
Module
|
Core
|
Header
|
/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h
|
Include
|
#include "Templates/SharedPointer.h"
|
template<class KeyType, class ValueType>
void CleanupPointerMap
(
TMap< TWeakPtr< KeyType >, ValueType > & PointerMap
)
Given a TMap of TWeakPtr's, will remove any invalid pointers. Not the most efficient.
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.