cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
do_not_optimize.h File Reference

Definition of do_not_optimize function. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  stat_bench
 Namespace of stat_bench source codes.
 
namespace  stat_bench::impl
 Namespace of internal implementation.
 

Functions

template<typename T>
void stat_bench::do_not_optimize (T &&val) noexcept
 Prevent compilers to optimize away a value.
 
void stat_bench::impl::use_pointer (void *ptr) noexcept
 Use a pointer to prevent deletion of a variable.
 

Detailed Description

Definition of do_not_optimize function.

Definition in file do_not_optimize.h.