Suppose I have the following class
class Example {
public:
using value_type = std::tuple<
uint8_t,
uint8_t,
uint16_t
>;
private:
value_type _value;
};
Now, I want to be able to create another class based upon this type that wraps each of the classes types in another type. Based upon Wrapping each type in a variadic template in a templated class, I know I can accomplish half my goal via:
template <typename T>
class Wrapper;
template <typename ... ARGS>
class ExampleWrapper {
private:
std::tuple<Wrapper<ARGS>...> _args;
};
However, what I can't figure out is how to get ARGS
if all I know is T
, where T
is Example. I would like to be able to use ExampleWrapper
as follows:
ExampleWrapper<Example> myWrapper;