function object
std::ranges::fold_left_first_with_iter
- Header
<algorithm>- Draft
- [alg.fold]
- Scope
std::ranges- cppreference
- std::ranges::fold_left_first_with_iter
Synopsis
inline constexpr /* implementation-defined */ fold_left_first_with_iter = {};Call signatures
fold_left_first_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, indirectly-binary-left-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_left_first_with_iter(R&& r, F f); - (2)
template< std::input_iterator I, std::sentinel_for<I> S, indirectly-binary-left-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_left_first_with_iter(I first, S last, F f);