Navigation
API > API/Runtime > API/Runtime/Core
Description
Given a TMap of TWeakPtr's, will remove any invalid pointers. Not the most efficient.
| Name | CleanupPointerMap |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
template<class KeyType, class ValueType>
void CleanupPointerMap
(
TMap < TWeakPtr < KeyType >, ValueType > & PointerMap
)
Parameters
| Name | Remarks |
|---|---|
| PointerMap | The pointer map to prune invalid pointers out of |