A smart pointer to a reference‐counted object that inherits from RefCountedBase or ThreadSafeRefCountedBase.
Synopsis
Declared in <llvm/ADT/IntrusiveRefCntPtr.h>
template<typename T>
class IntrusiveRefCntPtr;
Description
This class increments its pointee's reference count when it is created, and decrements its refcount when it's destroyed (or is changed to point to a different object).
Type Aliases
Name |
Description |
Type of the managed object. |
Member Functions
Name |
Description |
|
Constructors |
|
Release the pointee if non‐null. |
Copy‐assign via swap with |
|
Return the raw pointer without affecting the reference count. |
|
Dereference the pointee. |
|
Return a pointer to the pointee. |
|
Release the current pointee and set to null. |
|
Clear the pointer without decrementing the pointee's reference count. |
|
Exchange pointees with |
|
Return the pointee's reference count, or zero if empty. |
|
Return true if this pointer is non‐null. |
Friends
Name |
Description |
|
A smart pointer to a reference‐counted object that inherits from RefCountedBase or ThreadSafeRefCountedBase. |
Non-Member Functions
Name |
Description |
Factory function for creating intrusive ref counted pointers. |
|
Return true if |
|
Return true if |
|
Return true if |
|
Return true if |
|
Return true if |
|
Return true if |
|
Gets an |
|
Make a backend where OutputBackend::createFile() forwards to |
|
Create a backend that forwards OutputBackend::createFile() to both |
|
Create a backend that ignores all output. |
Created with MrDocs