Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TWeakPtr< CastToType, Mode > StaticCastWeakPtr
(
TWeakPtr< CastFromType, Mode > const& InWeakPtr |
Casts a weak pointer of one type to another type. (static_cast) Useful for down-casting. | Templates/SharedPointer.h | |
TWeakPtr< CastToType, Mode > StaticCastWeakPtr
(
TWeakPtr< CastFromType, Mode >&& InWeakPtr |
Templates/SharedPointer.h |
StaticCastWeakPtr(TWeakPtr< CastFromType, Mode > const &)
Description
Casts a weak pointer of one type to another type. (static_cast) Useful for down-casting.
| Name | StaticCastWeakPtr |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
template<class CastToType, class CastFromType, ESPMode Mode>
TWeakPtr < CastToType, Mode > StaticCastWeakPtr
(
TWeakPtr < CastFromType, Mode > const & InWeakPtr
)
Parameters
| Name | Remarks |
|---|---|
| InWeakPtr | The weak pointer to cast |
StaticCastWeakPtr(TWeakPtr< CastFromType, Mode > &&)
| Name | StaticCastWeakPtr |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
template<class CastToType, class CastFromType, ESPMode Mode>
TWeakPtr < CastToType, Mode > StaticCastWeakPtr
(
TWeakPtr < CastFromType, Mode > && InWeakPtr
)