Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
lib::test::microbenchmark Namespace Reference

Classes

struct  Adaptor
 
struct  Adaptor< ON(IN), enable_if< __and_< is_arithmetic< IN >, __not_< is_same< IN, size_t > >, is_arithmetic< ON >, __not_< is_same< ON, size_t > > > > >
 
struct  Adaptor< ON(void), enable_if< __and_< is_arithmetic< ON >, __not_< is_same< ON, size_t > > > > >
 
struct  Adaptor< size_t(size_t)>
 
struct  Adaptor< void(IN), enable_if< __and_< is_arithmetic< IN >, __not_< is_same< IN, size_t > > > > >
 
struct  Adaptor< void(void)>
 

Functions

template<typename FUN >
decltype(auto) adapted4benchmark (FUN &&fun)
 Adapter to expose the signature size_t(size_t) from any suitable source functor or lambda.
 

Class Documentation

◆ lib::test::microbenchmark::Adaptor

struct lib::test::microbenchmark::Adaptor
+ Collaboration diagram for Adaptor< SIG, SEL >:

Function Documentation

◆ adapted4benchmark()

template<typename FUN >
decltype(auto) adapted4benchmark ( FUN &&  fun)
inline

Adapter to expose the signature size_t(size_t) from any suitable source functor or lambda.

Note
requirements
  • arity must be either zero or one argument
  • if argument or return type are present, they must be plain arithmetic types
  • no references allowed
  • can be void(void)

Definition at line 149 of file microbenchmark-adaptor.hpp.

Referenced by lib::test::benchmarkLoop(), and lib::test::threadBenchmark().

+ Here is the caller graph for this function: