Inviwo  0.9.10.1
Inviwo documentation
inviwo::util::for_each_type_pair< ATypes, BTypes > Struct Template Reference

#include <foreacharg.h>

Detailed Description

template<class ATypes, class BTypes>
struct inviwo::util::for_each_type_pair< ATypes, BTypes >

A utility for iterating over all permutations of pairs from two lists of types. Example:

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

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