Converts every part of a zip to one type.
Variables | |
| template<typename T> | |
| auto | eve::algo::force_type = (force_type_key = std::type_identity<T>{}) |
| auto eve::algo::force_type = (force_type_key = std::type_identity<T>{}) |
#include <eve/module/algo.hpp>| T | Type every part converts to. |
Converts every part of a zip to T before the computation, and the conversion is narrowing if T is narrower, where eve::algo::common_type and eve::algo::common_with_types reach their type by reduction.
eve::algo::inclusive_scan_to applies it with the type of its initial value: a scan over narrow input is accumulated in the wider type of that value: