// This work derives from Vittorio Romeo's code used for cppcon 2015 licensed under the Academic Free License. // His code is available here: https://github.com/SuperV1234/cppcon2015 #ifndef EC_META_INDEX_OF_HPP #define EC_META_INDEX_OF_HPP #include "TypeList.hpp" namespace EC { namespace Meta { template struct IndexOf { }; template class TTypeList, typename... Types> struct IndexOf > : std::integral_constant { }; template class TTypeList, typename Type, typename... Types> struct IndexOf > : std::integral_constant >::value > { }; } } #endif