TWeakPtr::HasSameObject

Returns true if the object this weak pointer points to is the same as the specified object pointer.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Templates/SharedPointer.h"

Syntax

bool HasSameObject
(
    const void * InOtherPtr
) const

Remarks

Returns true if the object this weak pointer points to is the same as the specified object pointer.