Converts every part of a zip to their common type.
Variables | |
| constexpr auto | eve::algo::common_type = common_with_types<> |
|
inlineconstexpr |
#include <eve/module/algo.hpp>Converts every part of a zip to the type eve::common_type reduces the parts to. A zipped range carries a type per part, and after the conversion every lane is of a single type.
eve::algo::equal and eve::algo::mismatch apply the trait themselves, and a comparison between ranges of different types is run on a single type. A custom predicate receives the parts as they are; if they are to be converted, the trait is passed on the algorithm.