LLVM
8.0.1
|
A CRTP mixin class that adds reference counting to a type. More...
#include "llvm/ADT/IntrusiveRefCntPtr.h"
Public Member Functions | |
RefCountedBase ()=default | |
RefCountedBase (const RefCountedBase &) | |
void | Retain () const |
void | Release () const |
A CRTP mixin class that adds reference counting to a type.
The lifetime of an object which inherits from RefCountedBase is managed by calls to Release() and Retain(), which increment and decrement the object's refcount, respectively. When a Release() call decrements the refcount to 0, the object deletes itself.
Definition at line 71 of file IntrusiveRefCntPtr.h.
|
default |
|
inline |
Definition at line 76 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 80 of file IntrusiveRefCntPtr.h.
References assert().
|
inline |
Definition at line 78 of file IntrusiveRefCntPtr.h.