Returns the index of type T0 in type list. If the type is not in the list, returns -1.
More...
#include <Traits.h>
|
static constexpr int | value = std::is_same<T0, T1>::value ? n : TypeIndex<T0, n + 1, TArgs...>::value |
|
template<typename T0, int n, typename T1, typename... TArgs>
struct TypeIndex< T0, n, T1, TArgs >
Returns the index of type T0 in type list. If the type is not in the list, returns -1.
Definition at line 31 of file Traits.h.
◆ value
template<typename T0 , int n, typename T1 , typename... TArgs>
constexpr int TypeIndex< T0, n, T1, TArgs >::value = std::is_same<T0, T1>::value ? n : TypeIndex<T0, n + 1, TArgs...>::value |
|
staticconstexpr |
The documentation for this struct was generated from the following file:
- /home/pavel/projects/astro/sph/src/core/common/Traits.h