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 CastToType, class CastFromType, ESPMode Mode>
TWeakPtr < CastToType, Mode > StaticCastWeakPtr
(
TWeakPtr < CastFromType, Mode > const & InWeakPtr
)
Remarks
Casts a weak pointer of one type to another type. (static_cast) Useful for down-casting.
Parameters
| Name | Description |
|---|---|
| InWeakPtr | The weak pointer to cast |