ParameterPack< T > Struct Template Reference

#include <apibase.h>

详细描述

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

Helper class to work with parameter packs. IndexOf supports finding the index of a type in the argument list, At supports indexing into the list, ContainsAll implements a subset test:

ParameterPack<Int, Float, String, String>::IndexOf< Float >::value == 1 ParameterPack<Int, Float, String, String>::At<2>::type == String ParameterPack<Int, Float, String, String>::ContainsAll < String , Int >::value == true
Template Parameters
T The types of the parameter pack.

Classes

struct   At
struct   IndexOf

Public Types

using  FirstType = void
using  RestPack = ParameterPack <>
template<typename... X>
using  ContainsAll = maxon::details::ParameterPackContainsAll < ParameterPack , X... >
template<template< typename... > class TEMPLATE, typename... X>
using  应用 = TEMPLATE< X..., T... >

静态公共属性

static const Int   COUNT

Member Typedef Documentation

◆  FirstType

using FirstType = void

The first type of this parameter pack.

◆  RestPack

using RestPack = ParameterPack <>

◆  ContainsAll

using ContainsAll = maxon::details::ParameterPackContainsAll < ParameterPack , X...>

ContainsAll checks if this parameter pack contains all types X. Besides a list of types X can also be a ParameterPack itself.

ParameterPack<Int, Float, String, String>::ContainsAll < String , Int >::value == true ParameterPack<Int, Float, String, String>::ContainsAll <ParameterPack<String, Int>>::value == true ParameterPack<Int, Float, String, String>::ContainsAll < String , Int , Bool >::value == false
Template Parameters
X Types to check. This can either be a list of types, or a single ParameterPack .

◆  应用

using 应用 = TEMPLATE<X..., T...>

Member Data Documentation

◆  COUNT

const Int COUNT static
Int
maxon::Int Int
定义: ge_sys_math.h:62
maxon::ParameterPack::ContainsAll
maxon::details::ParameterPackContainsAll< ParameterPack, X... > ContainsAll
定义: apibase.h:842
Float
maxon::Float Float
定义: ge_sys_math.h:64
String
定义: c4d_string.h:38
maxon::Int
Int64 Int
signed 32/64 bit int, size depends on the platform
定义: apibase.h:184
Bool
maxon::Bool Bool
定义: ge_sys_math.h:53