LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Trait: index of the first occurrence of T
among the specified Types
, starting from the one with index StartFrom
.
More...
#include "MetaUtils.h"
Trait: index of the first occurrence of T
among the specified Types
, starting from the one with index StartFrom
.
T | the type of check the presence of |
StartFrom | number of Types that will be ignored |
Types | the possible types T can match. |
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 189 of file MetaUtils.h.