hpx::ranges::fold_right_last#
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 BidIter, typename Sent, typename F>
auto hpx::ranges::fold_right_last(BidIter first, Sent last, F f)# Right-folds a range using the last element as the initial value.
- Template Parameters:
BidIter – 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:
An optional containing the fold result, or std::nullopt if the range is empty.
-
template<typename Rng, typename F>
auto hpx::ranges::fold_right_last(Rng &&rng, F f)# Right-folds a range using the last element as the initial value.
- 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:
An optional containing the fold result, or std::nullopt if the range is empty.