Returns type TargetClass<U...> from a SrcTuple<T...>.
More...
#include <TupleLookupByTag.h>
Public Types | |
| using | type = typename details::extract_to_tuple_type_impl< TargetClass, Extractor, SrcTuple, 0U, N >::type |
Static Private Attributes | |
| static constexpr std::size_t | N = std::tuple_size<SrcTuple>() |
Returns type TargetClass<U...> from a SrcTuple<T...>.
| SrcTuple | a tuple-like type enclosing a list of types |
| Extractor | class extracting the U type from each T |
| TargetClass | the template type of the class to be returned |
extract_to_tuple_type_t, to_tupleThe input template argument SrcTuple is an object supporting std::tuple_size and std::tuple_element to return all its contained types.
will yield a PointerDataClass as MySecondClass<int*, char*, std::string*> (note that in this partial example MyFirstClass is not yet a tuple-like type).
The extractor is a trait whose first element is the type to be transformed, and whose member type holds the transformed type.
SrcTuple. Definition at line 195 of file TupleLookupByTag.h.
| using util::extract_to_tuple_type< SrcTuple, Extractor, TargetClass >::type = typename details::extract_to_tuple_type_impl <TargetClass, Extractor, SrcTuple, 0U, N>::type |
Definition at line 1211 of file TupleLookupByTag.h.
|
staticprivate |
Definition at line 1208 of file TupleLookupByTag.h.
1.8.11