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