Non-owning weak reference to a read-mostly managed object.
Declared in <folly/concurrency/memory/ReadMostlySharedPtr.h>
template<
typename U,
typename RefCount2 = DefaultRefCount>
class ReadMostlyWeakPtr;
Keeps the control block alive without keeping the object alive, and can be promoted to a ReadMostlySharedPtr via lock() while the object exists.
| Name | Description |
|---|---|
ReadMostlyWeakPtr [constructor] | Constructors |
~ReadMostlyWeakPtr [destructor] | Destroys the weak pointer and releases its weak reference. |
operator= | Assignment operators |
lock | Promotes the weak reference to a shared pointer. |
| Name | Description |
|---|---|
folly::ReadMostlySharedPtr | Shared reader handle to a read-mostly managed object. |
folly::ReadMostlyWeakPtr | Non-owning weak reference to a read-mostly managed object. |
| Name | Description |
|---|---|
| T | The pointed-to object type. |
| RefCount | The reference-count implementation to use. |