|
Mundy: Multibody Nonlocal Dynamics Version of the Day
|
Compiler logic to prevent a value from being optimized away. More...
Namespaces | |
| namespace | mundy |
Functions | |
| template<typename Arg> | |
| void | mundy::do_not_optimize_away (Arg &&arg) |
| Makes sure none of the given arguments are optimized away by the compiler. | |
Identical to nanobench's doNotOptimizeAway, which (in turn) is based on the same function in Google Benchmark.