ParameterizerStruct

Define a way of providing testing data to a benchmark, i.e. stop the compiler DFAing the magic away. It must be parameterized by a size_t such that it can be measured.

You provide the generating algorithm and a range to specify

struct ParameterizerStruct (
Range
FuncType
) if (
isInputRange!Range &&
is(ElementType!Range : size_t)
&&
(
isCallable!FuncType &&
arity!FuncType == 1
&&
__traits(isSame, Parameters!FuncType[0], size_t)
)
) {}

Constructors

this
this(NamedBenchmark l, Range set, FuncType fSet)

If you already have the location

this
this(string name, Range set, FuncType fSet)

Members

Variables

func
FuncType func;
Undocumented in source.
loc
NamedBenchmark loc;
Undocumented in source.
store
Range store;
Undocumented in source.

Meta