The Sparta Modeling Framework
Loading...
Searching...
No Matches
MetaTypeList::get_index< S, T, type_list< Head, Tail... >, typename std::enable_if< std::is_same< T, Head >::value >::type > Class Template Reference

Class Template to return the index of a certain type in a certain typelist. Case when queried type matches front type. More...

#include <MetaTypeList.hpp>

Static Public Attributes

static constexpr std::size_t value = (S - sizeof...(Tail)) - 1
 

Detailed Description

template<std::size_t S, typename T, typename Head, typename... Tail>
class MetaTypeList::get_index< S, T, type_list< Head, Tail... >, typename std::enable_if< std::is_same< T, Head >::value >::type >

Class Template to return the index of a certain type in a certain typelist. Case when queried type matches front type.

Definition at line 251 of file MetaTypeList.hpp.

Member Data Documentation

◆ value

template<std::size_t S, typename T , typename Head , typename... Tail>
constexpr std::size_t MetaTypeList::get_index< S, T, type_list< Head, Tail... >, typename std::enable_if< std::is_same< T, Head >::value >::type >::value = (S - sizeof...(Tail)) - 1
staticconstexpr

Definition at line 254 of file MetaTypeList.hpp.


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