Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedPtr< CastToType, Mode > StaticCastSharedPtr
(
TSharedPtr< CastFromType, Mode > const& InSharedPtr |
Casts a shared pointer of one type to another type. (static_cast) Useful for down-casting. | Templates/SharedPointer.h | |
TSharedPtr< CastToType, Mode > StaticCastSharedPtr
(
TSharedPtr< CastFromType, Mode >&& InSharedPtr |
Templates/SharedPointer.h |
StaticCastSharedPtr(TSharedPtr< CastFromType, Mode > const &)
Description
Casts a shared pointer of one type to another type. (static_cast) Useful for down-casting.
| Name | StaticCastSharedPtr |
| 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>
TSharedPtr < CastToType, Mode > StaticCastSharedPtr
(
TSharedPtr < CastFromType, Mode > const & InSharedPtr
)
Parameters
| Name | Remarks |
|---|---|
| InSharedPtr | The shared pointer to cast |
StaticCastSharedPtr(TSharedPtr< CastFromType, Mode > &&)
| Name | StaticCastSharedPtr |
| 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>
TSharedPtr < CastToType, Mode > StaticCastSharedPtr
(
TSharedPtr < CastFromType, Mode > && InSharedPtr
)