Lets imagine that we have several data flows and we need unite them to one. Capacity of flows (and type) is known at application level. So we need class that incapsulates all other classes that relates to each data flow and produces common frame based on return type of data flows. Each data flow class have next interface:
// note that there are several classes with similar interface
class FlowOne {
using return_type = some_data;
return_type get();
};
Main flow class will look like:
template <typename... Args>
class Main {
using return_type = *based on Args::return_type*;
return_type get();
};
So, here is a question: how to define Main::return_type - that should be a tuple of return_type-s from its Args? Is it possible?
Thanks