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);