I want to make a template where I can input an index and it will give me the type at that index. I know I can do this with decltype(std::get<N>(tup))
but I would like to implement this myself. For example, I would like to do this,
typename get<N, std::tuple<int, bool, std::string>>::type;
...and it will give me the type at position N - 1
(because arrays indexed starting from 0). How can I do this? Thanks.