POD wrapper around an element (a void*) and an associated deleter. This must be POD, as we memset() it to 0 and memcpy() it around.
Synopsis
Declared in <folly/detail/ThreadLocalDetail.h>
struct ElementWrapper;
Type Aliases
Name |
Description |
Signature of a raw deleter function. |
|
Type‐erased deleter callable. |
Member Functions
Name |
Description |
|
Constructs an empty wrapper. |
Disposes any object deleter and resets the wrapper to empty. |
|
Disposes the held element using its deleter. |
|
Releases ownership of the held element without disposing it. |
|
|
Static Member Functions
Name |
Description |
Reinterprets a deleter function pointer as a tagged integer. |
|
|
Data Members
Static Data Members
Name |
Description |
Mask covering all deleter tag bits. |
|
Bit flag marking that the deleter is an object rather than a function. |
Created with MrDocs