Access a type in a variadic template by index
问题 I would like to obtain a type in a variadic template by index. The index is specified as a template argument. I managed to find a 'hack' that works, but I believe that it is not in the spirit of variadic template programming. Besides, it uses extra memory. Here is the code with some explanations: template <typename... InputPortTypes> class PipelineReceiver { protected: // This tuple is used for storing types only // Hence, I would like to get rid of it, but I am not sure how. std::tuple< std: