operator==

Tests to see if a [TSharedRef](API\Runtime\Core\Templates\TSharedRef) is "equal" to a [TSharedPtr](API\Runtime\Core\Templates\TSharedPtr) (both are valid and refer to the same object) (reverse)

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Templates/SharedPointer.h"

Syntax

template<class ObjectTypeA, class ObjectTypeB, ESPMode Mode>
bool operator==
(
    TSharedPtr< ObjectTypeB, Mode > const & InSharedPtr,
    TSharedRef< ObjectTypeA, Mode > const & InSharedRef
)

Remarks

Tests to see if a TSharedRef is "equal" to a TSharedPtr (both are valid and refer to the same object) (reverse)

Returns

True if the shared reference and shared pointer are "equal"

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