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

Definition of use_pointer function. More...

#include "stat_bench/do_not_optimize.h"
#include <atomic>
+ Include dependency graph for use_pointer.cpp:
+ 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

void stat_bench::impl::use_pointer (void *ptr) noexcept
 Use a pointer to prevent deletion of a variable.
 

Detailed Description

Definition of use_pointer function.

Note
Separate implementation to prevent optimization.

Definition in file use_pointer.cpp.