ECSTASY
All in the name
Loading...
Searching...
No Matches
index.hpp File Reference

Get the index of the first occurence of a type in a list of types. More...

#include <type_traits>
Include dependency graph for index.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  util::meta::index< T, T, Ts... >
 Get the index of the first occurence of type T in the types Ts. More...
 
struct  util::meta::index< T, U, Ts... >
 Get the index of the first occurence of type T in the types Ts. More...
 

Namespaces

namespace  util
 Namespace regrouping helpers used by ecstasy but not specific to ecstasy.
 
namespace  util::meta
 Namespace regrouping all meta programmation helper types.
 

Variables

template<typename T , typename... Ts>
constexpr std::size_t util::meta::index_v = index<T, Ts...>::value
 Helper for index<...>::type.
 

Detailed Description

Get the index of the first occurence of a type in a list of types.

Author
Andréas Leroux (andre.nosp@m.as.l.nosp@m.eroux.nosp@m.@epi.nosp@m.tech..nosp@m.eu)
Version
1.0.0
Date
2022-10-28

Definition in file index.hpp.