SPH
Static Public Attributes | List of all members
TypeIndex< T0, n, T1, TArgs > Struct Template Reference

Returns the index of type T0 in type list. If the type is not in the list, returns -1. More...

#include <Traits.h>

Static Public Attributes

static constexpr int value = std::is_same<T0, T1>::value ? n : TypeIndex<T0, n + 1, TArgs...>::value
 

Detailed Description

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.

Member Data Documentation

◆ 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

Definition at line 32 of file Traits.h.


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