A hierarchy of memory‐safety levels for a type, from least to most safe.
Synopsis
Declared in <folly/lang/SafeAlias‐fwd.h>
enum class safe_alias : int;
Description
ENUM ORDER IS IMPORTANT! Categories go from "least safe to most safe". Always use >= for safety gating.
Note: Only async_closure*() from folly coro/safe/ use the middle safety levels shared_cleanup, after_cleanup_ref, and co_cleanup_safe_ref. Normal user code should stick to maybe_value and unsafe.
Members
Name |
Description |
|
Definitely has aliasing, we know nothing of the lifetime. |
|
Implementation detail of |
|
Implementation detail of |
|
Used only in |
|
|
|
Used only in |
|
Used only in |
|
Looks like a "value", i.e. alive as long as you hold it. Remember this is just a HEURISTIC ‐‐ a ref inside a struct will fool it. |
Created with MrDocs