Stupid std::tuple tricks: Finding a type in a tuple
The series continue.
Stupid std::tuple tricks: Finding a type in a tuple
by Raymond Chen
From the article:
Given a tuple, you can extract the type of the Nth element in the tuple with the help of std::tuple_element_t<N, Tuple>...