| 455 | /// on every element. The mapped function is not allowed to fail. |
| 456 | template <typename Fn, typename From, typename To = std::invoke_result_t<Fn&, From>> |
| 457 | Iterator<To> MakeMapIterator(Fn map, Iterator<From> it) { |
| 458 | return Iterator<To>(MapIterator<Fn, From, To>(std::move(map), std::move(it))); |
| 459 | } |
| 460 | |
| 461 | /// \brief Like MapIterator, but where the function can fail. |
| 462 | template <typename Fn, typename From, |
no outgoing calls