Visual Computing Library
Loading...
Searching...
No Matches
vcl::ForEachType< T > Struct Template Reference

Allows to apply a function to each type in a variadic template pack. More...

#include <vclib/types/variadic_templates.h>

Static Public Member Functions

template<typename F >
static void apply (F &&f)
 

Detailed Description

template<typename... T>
struct vcl::ForEachType< T >

Allows to apply a function to each type in a variadic template pack.

Usage:

// declare the function as a lambda - will do something with T
auto f = []<typename T>()
{
std::cout << typeid(T).name() << std::endl;
};
// call a function for each type in a parameter pack
Allows to apply a function to each type in a variadic template pack.
Definition variadic_templates.h:166

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