hpx::ranges::fold_left_first_with_iter#
Defined in header hpx/algorithm.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
See also:
-
template<typename InIter, typename Sent, typename F>
auto hpx::ranges::fold_left_first_with_iter(InIter first, Sent last, F f) -> fold_left_first_with_iter_result<InIter, hpx::optional<std::decay_t<std::invoke_result_t<F&, std::iter_reference_t<InIter>, std::iter_reference_t<InIter>>>>># Left-folds a range using the first element and returns both an optional result and the end iterator.
- Template Parameters:
InIter – The type of the source begin iterator (deduced).
Sent – The type of the source sentinel (deduced).
F – The type of the binary function object.
- Parameters:
first – Refers to the beginning of the sequence.
last – Refers to the end of the sequence.
f – Binary function object that will be applied.
- Returns:
A fold_left_first_with_iter_result containing the end iterator and an optional with the fold result.
-
template<typename Rng, typename F>
auto hpx::ranges::fold_left_first_with_iter(Rng &&rng, F f) -> fold_left_first_with_iter_result<std::ranges::iterator_t<Rng>, hpx::optional<std::decay_t<std::invoke_result_t<F&, std::ranges::range_reference_t<Rng>, std::ranges::range_reference_t<Rng>>>>># Left-folds a range using the first element and returns both an optional result and the end iterator.
- Template Parameters:
Rng – The type of the source range (deduced).
F – The type of the binary function object.
- Parameters:
rng – Refers to the sequence of elements.
f – Binary function object that will be applied.
- Returns:
A fold_left_first_with_iter_result containing the end iterator and an optional with the fold result.