E.V.E  0.1-beta

◆ convert

eve::algo::views::convert

#include <eve/algo/views/convert.hpp>

Takes an iterator or a range and returns an adapter that has a provided value type.

struct eve::algo::views::convert_ convert
Takes an iterator or a range and returns an adapter that has a provided value type.
Lightweight type-wrapper.
Definition: as.hpp:29

Behaviour for a specific iterator/range can be customized via tagged dispatch:

template <typename T>
EVE_FORCEINLINE friend auto tagged_dispatch(eve::algo::views::convert_, my_rng self, eve::as<T> tgt);

Required header: #include <eve/algo/views/convert.hpp>

Has a shorthand eve::views::converting_range in <eve/views/convert.hpp>.