util::find_next_type< T, StartFrom, Types > Struct Template Reference

Trait: index of the first occurrence of T among the specified Types, starting from the one with index StartFrom. More...

#include <MetaUtils.h>

Inheritance diagram for util::find_next_type< T, StartFrom, Types >:
util::details::find_type_impl< 0U, StartFrom, T, Types... >

Detailed Description

template<typename T, std::size_t StartFrom, typename... Types>
struct util::find_next_type< T, StartFrom, Types >

Trait: index of the first occurrence of T among the specified Types, starting from the one with index StartFrom.

Template Parameters
Tthe type of check the presence of
StartFromnumber of Types that will be ignored
Typesthe possible types T can match.
See also
util::find_next_type

The value of the trait is the index of T within the specified list of Types (first type as index 0). The first StartFrom Types are ignored, but still counted. The match is exact, as in std::is_same. If none of the Types exactly matches T, the trait value will be the number of types (i.e. sizeof...(Types)), which is the index after the last of the types.

This is a integral trait (type std::size_t): use it as std::integer_constant.

Definition at line 207 of file MetaUtils.h.


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