Lumiera
0.pre.03
»edit your freedom«
|
Definition at line 134 of file variadic-argument-picker-test.cpp.
Private Member Functions | |
void | check_pickArg () |
void | check_pickInit () |
void | check_reorderedArguments () |
virtual void | run (Arg) |
void | verify_fixture () |
Static Private Member Functions | |
template<class... ARGS, size_t... idx> | |
static auto | call_with_reversed_arguments (IndexSeq< idx... >, ARGS &&...args) |
Demonstration of argument manipulation through metaprogramming. More... | |
|
inlinestaticprivate |
Demonstration of argument manipulation through metaprogramming.
This function invokes the ubiquitous fun
test function with arbitrary arguments, but it re-orders and even prunes arguments as dictated by the Index sequence parameter.
IndexSeq<idx...>
is irrelevantIndexSeq
just as an container to hold the sequence idx...
std::forward
for perfect forwardingidx...
packidx
without the ...
sits within the template list of pickArg<idx>
idx...
pack which actually drives the generation of several pickArg
instantiationsDefinition at line 238 of file variadic-argument-picker-test.cpp.
References lib::meta::test::anonymous_namespace{variadic-argument-picker-test.cpp}::fun().
|
inlineprivate |
Definition at line 245 of file variadic-argument-picker-test.cpp.
References lib::meta::test::anonymous_namespace{variadic-argument-picker-test.cpp}::fun().