Template Class IO
Defined in File types.hpp
Class Documentation
-
template<typename ...Types>
class IO Group multiple data types as filter input or output.
This is a helper class to disambiguate filter definitions with N-ary inputs and outputs. Consider the following hypothetical example:
It is unclear which types refer to inputs and which refer to outputs. In contrast, consider:Filter<Type1, Type2, Type3> flt;
This declaration makes it clear that the first filter acceptsFilter<IO<Type1>, IO<Type2, Type3>> flt1; Filter<IO<Type1, Type2>, IO<Type3>> flt2;
Type1as input and will passType2andType3as output, while the second filter will takeType1andType2as input and passType3as output.Public Types
-
template<template<typename...> class Outer>
using Rewrap = Outer<helpers::io_unwrap_t<Types>...> Rewrap the grouped data types in a different wrapper template type.
-
template<template<typename...> class Outer>