operator!=

Tests to see if a [TSharedRef](API\Runtime\Core\Templates\TSharedRef) is not "equal" to a [TSharedPtr](API\Runtime\Core\Templates\TSharedPtr) (shared pointer is invalid, or both refer to different objects)

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!=
(
    TSharedRef< ObjectTypeA, Mode > const & InSharedRef,
    TSharedPtr< ObjectTypeB, Mode > const & InSharedPtr
)

Remarks

Tests to see if a TSharedRef is not "equal" to a TSharedPtr (shared pointer is invalid, or both refer to different objects)

Returns

True if the shared reference and shared pointer are not "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