Relative Content

Tag Archive for c++templatesvariadic-templates

Passing multiple templated functions and their arguments at once

I want to make a class that will take multiple functions (function pointers, lambdas, classes with operator(), etc), save them in a tuple, and then call all of them with passed arguments (assuming that each function is callable with them). I also want to put it under templated interface so that the caller only knows about required arguments and return types of functions (which will be required only for bool specialization). Here’s what I approximately am trying to achieve (and full version):