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>
TSharedPtr < CastToType, Mode > StaticCastSharedPtr
(
TSharedPtr < CastFromType, Mode > const & InSharedPtr
)
Remarks
Casts a shared pointer of one type to another type. (static_cast) Useful for down-casting.
Parameters
| Name | Description |
|---|---|
| InSharedPtr | The shared pointer to cast |