Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
arene::base::last_index_of< T, Ts > Class Template Reference

Template meta-function for querying the last 0-based index of a type in a list of types. More...

Inheritance diagram for arene::base::last_index_of< T, Ts >:
Inheritance graph

Detailed Description

template<typename T, typename... Ts>
class arene::base::last_index_of< T, Ts >

Template meta-function for querying the last 0-based index of a type in a list of types.

Template Parameters
TThe type to search for.
TsThe list of types to search in.

If T is found within Ts... then this type inherits from std::integral_constant<std::size_t, Idx> where Idx is the zero-based index of the last occurrence of T in Ts...

Access the result using the value member of this type. This type will not have a value member if T is not one of the types listed in Ts....


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