function object
std::ranges::fold_right_last
- Header
<algorithm>- Draft
- [alg.fold]
- Scope
std::ranges- cppreference
- std::ranges::fold_right_last
Synopsis
inline constexpr /* implementation-defined */ fold_right_last = {};Call signatures
fold_right_last is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template< std::ranges::bidirectional_range R, indirectly-binary-right-foldable<std::ranges::range_value_t<R>, iterator_t<R>> F> requires std::constructible_from<std::ranges::range_value_t<R>, std::ranges::range_reference_t<R>> constexpr auto fold_right_last(R&& r, F f); - (2)
template< std::bidirectional_iterator I, std::sentinel_for<I> S, indirectly-binary-right-foldable<std::iter_value_t<I>, I> F> requires std::constructible_from<std::iter_value_t<I>, std::iter_reference_t<I>> constexpr auto fold_right_last(I first, S last, F f);