Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates
References
| 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
)
Remarks
Given a TMap of TWeakPtr's, will remove any invalid pointers. Not the most efficient.
Parameters
| Name | Description |
|---|---|
| PointerMap | The pointer map to prune invalid pointers out of |