ConstCastSharedRef

Casts a 'const' shared reference to 'mutable' shared reference. (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>
TSharedRef< CastToType, Mode > ConstCastSharedRef
(
    TSharedRef< CastFromType, Mode > const & InSharedRef
)

Remarks

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

Parameters

Parameter

Description

InSharedRef

The shared reference 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