Caffe2 - C++ API
A deep learning, cross platform ML framework
c10::guts::typelist::find_if< TypeList, Condition, Enable > Struct Template Referencefinal

Find the index of the first type in a typelist fulfilling a type trait condition. More...

#include <TypeList.h>

Detailed Description

template<class TypeList, template< class > class Condition, class Enable = void>
struct c10::guts::typelist::find_if< TypeList, Condition, Enable >

Find the index of the first type in a typelist fulfilling a type trait condition.

Example:

2 == find_if<typelist<char, int, char&, int&>, std::is_reference>::value

Definition at line 259 of file TypeList.h.


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