RefOrNull3 method
P
RefOrNull3(
- X? o
Writes o into slot '3' and returns its pointer, or returns nullptr
if o is null.
Use this instead of Ref3 when the C API uses a null pointer to signal "no value".
Implementation
P RefOrNull3(X? o) => o == null ? nullptrFactory() : Ref3(o);