gar::details::index_with_type< FindType, AmongTypes > Struct Template Reference

Hosts the index of type FindType in the list of types AmongTypes. More...

#include <ProviderPack.h>

Detailed Description

template<typename FindType, typename... AmongTypes>
struct gar::details::index_with_type< FindType, AmongTypes >

Hosts the index of type FindType in the list of types AmongTypes.

Template Parameters
FindTypethe type to find
AmongTypesthe list of types

If FindType type is not any of AmongTypes typesm a compilation error message (static assertion) is issued. Otherwise, the class has a value member pointing to the index of FindType among AmongTypes. This value is suct that this assertion is valid:

std::is_same<
  FindType,
  typename std::tuple_element<
    index_with_type<FindType, AmongTypes...>::value,
    std::tuple<AmongTypes...>
    >
  >::value

Definition at line 55 of file ProviderPack.h.


The documentation for this struct was generated from the following file: