Inviwo  0.9.10.1
Inviwo documentation
inviwo::util::for_each_type< Types > Struct Template Reference

#include <foreacharg.h>

Detailed Description

template<class... Types>
struct inviwo::util::for_each_type< Types >

A utility for iterating over types in a list. Example:

struct Functor {
template <typename T>
auto operator()(std::vector<Property*>& properties) {
properties.push_pack(new OrdinalProperty<T>());
}
};
std::vector<Property*>& properties;
using Vec4s = std::tuple<vec4, dvec4, ivec4, size4_t>;
util::for_each_type<Vec4s>{}(Functor{}, properties);

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