ParameterPack< T >::IndexOf< X > Struct Template Reference

#include <apibase.h>

详细描述

template<typename... T>
template<typename X>
struct maxon::ParameterPack< T >::IndexOf< X >

IndexOf finds the index of type X in the parameter pack T. The index can be found in the member value of IndexOf . If there is no unique such index because X doesn't exist at all in T or exists more than once, a negative value is used. The member found counts the number of occurrences.

ParameterPack<Int, Float, String, String>::IndexOf< Float > ::value == 1 ParameterPack<Int, Float, String, String>::IndexOf< String > ::value < 0 // Ambiguous. ParameterPack<Int, Float, String, String>::IndexOf< String > ::found == 2 ParameterPack<Int, Float, String, String>::IndexOf< Char > ::value < 0 // Not found.
Template Parameters
X Type to search for.

静态公共属性

static const Int   value
static const Int   found

Member Data Documentation

◆  value

const Int value static

◆  found

const Int found static
Float
maxon::Float Float
定义: ge_sys_math.h:64
String
定义: c4d_string.h:38
maxon::ParameterPack::IndexOf::found
static const Int found
定义: apibase.h:812
Char
maxon::Char Char
定义: ge_sys_math.h:54
maxon::ParameterPack::IndexOf::value
static const Int value
定义: apibase.h:811