Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
do_not_optimize_away.hpp File Reference

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.

Detailed Description

Identical to nanobench's doNotOptimizeAway, which (in turn) is based on the same function in Google Benchmark.