ConstCastSharedPtr

Casts a 'const' shared pointer to 'mutable' shared pointer. (const_cast)

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 > ConstCastSharedPtr
(
    TSharedPtr< CastFromType, Mode > const & InSharedPtr
)

Remarks

Casts a 'const' shared pointer to 'mutable' shared pointer. (const_cast)

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