Initializes a default-constructed instance before first use.
Declared in <folly/PackedSyncPtr.h>
void
init(
T* initialPtr = nullptr,
uint16_t initialExtra = 0);
A constructor is intentionally avoided so the class can be placed in packed structures, so this must be called before any other member.
| Name | Description |
|---|---|
| initialPtr | The initial raw pointer to store. |
| initialExtra | The initial 15-bit extra value to store. |