operator==

Compare weak pointers for equality.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/UObject/WeakObjectPtrTemplates.h

Include

#include "UObject/WeakObjectPtrTemplates.h"

Syntax

template<typename LhsT, typename RhsT, typename OtherTWeakObjectPtrBase, typename>
bool operator==
(
    const TWeakObjectPtr< LhsT, OtherTWeakObjectPtrBase > & Lhs,
    const TWeakObjectPtr< RhsT, OtherTWeakObjectPtrBase > & Rhs
)

Remarks

Compare weak pointers for equality. If both pointers would return nullptr from Get() they count as equal even if they were not initialized to the same object.

Parameters

Parameter

Description

Other

weak pointer to compare to

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