StaticCastSharedPtr

Casts a shared pointer of one type to another type. (static_cast) Useful for down-casting.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h

Include

#include "Templates/SharedPointer.h"

Syntax

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

Parameter

Description

InSharedPtr

The shared pointer to cast

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss