go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Member Functions
typelist::Visit< TTypeList > Class Template Reference

#include <TypeList.h>

Detailed Description

template<class TTypeList>
class typelist::Visit< TTypeList >

Runs a templated predicate on each type in the list.

struct Predicate
{
template<class TType>
void operator()( void ) const
{ std::cout << typeid(TType).name() << std::endl; }
};
typelist::Visit<MyTypeList>()( Predicate() );

Definition at line 487 of file TypeList.h.

Public Member Functions

template<class Predicate >
void operator() (const Predicate &visitor)
 
template<class Predicate >
void operator() (Predicate &visitor)
 

Member Function Documentation

◆ operator()() [1/2]

template<class TTypeList >
template<class Predicate >
void typelist::Visit< TTypeList >::operator() ( const Predicate &  visitor)
inline

Definition at line 501 of file TypeList.h.

◆ operator()() [2/2]

template<class TTypeList >
template<class Predicate >
void typelist::Visit< TTypeList >::operator() ( Predicate &  visitor)
inline

Definition at line 490 of file TypeList.h.

typelist::TypeList
The building block of typelists of any length.
Definition: TypeList.h:83
typelist::Visit
Runs a templated predicate on each type in the list.
Definition: TypeList.h:488
typelist::Visit::operator()
void operator()(Predicate &visitor)
Definition: TypeList.h:490


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo