18template <
typename Derived>
24#if !defined(_MSC_VER) && (defined(__llvm__) || __GNUC__ > 7)
26 __attribute__((no_sanitize(
"vptr")))
31 static_cast<Derived*
>(&rhs));
34#if !defined(_MSC_VER) && (defined(__llvm__) || __GNUC__ > 7)
36 __attribute__((no_sanitize(
"vptr")))
42 static_cast<Derived*
>(&rhs));
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:19
~SendableHelper()
Definition: SendableHelper.h:49
SendableHelper & operator=(SendableHelper &&rhs)
Definition: SendableHelper.h:39
SendableHelper(const SendableHelper &rhs)=default
SendableHelper(SendableHelper &&rhs)
Definition: SendableHelper.h:28
SendableHelper & operator=(const SendableHelper &rhs)=default
static void Move(Sendable *to, Sendable *from)
Moves an object in the registry (for use in move constructors/assignments).
static bool Remove(Sendable *sendable)
Removes an object from the registry.
Definition: ntcore_cpp.h:26