Welcome to the new CppUtils documentation!
Functions & utilities
FUNCTIONSNamespace: CppUtils::Execution
Public functions
Section titled “Public functions”Prevents compiler optimization (dead code elimination) for an expression or variable.
Uses an inline assembly memory barrier on Clang/GCC to force the compiler to retain the evaluated value in registers or memory.
| Parameter | Description |
|---|---|
value | Forwarding reference to the value or expression to keep alive. |