Public Types | List of all members
cudf::test::ContainedIn< HAYSACK > Struct Template Reference

Indicates if a type exists within a type list. More...

#include <type_list_utilities.hpp>

Public Types

template<class NEEDLE >
using Call = ExistsImpl< NEEDLE, HAYSACK >
 Invoked as predicate for RemoveIf. More...
 

Detailed Description

template<class HAYSACK>
struct cudf::test::ContainedIn< HAYSACK >

Indicates if a type exists within a type list.

Used as a predicate for RemoveIf

Example:

ContainedIn<Types<Types<int, char>>>::Call<Types<int, char>>::value ==
*true_type ContainedIn<Types<Types<int, char>>>::Call<Types<int, float>>::value
*== false_type
// Used as a predicate
using MyTypes = RemoveIf<ContainedIn<Types<Types<char, char>>>,
Types<Types<char, char>, Types<float,int>>>;
// MyTypes == Types<float, int>
Template Parameters
HAYSACKThe type list to search

Definition at line 393 of file type_list_utilities.hpp.

Member Typedef Documentation

◆ Call

template<class HAYSACK >
template<class NEEDLE >
using cudf::test::ContainedIn< HAYSACK >::Call = ExistsImpl<NEEDLE, HAYSACK>

Invoked as predicate for RemoveIf.

Template Parameters
NEEDLEThe type to search for

Definition at line 400 of file type_list_utilities.hpp.


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