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