Iros
 
Loading...
Searching...
No Matches
di::container::detail::FoldLeftWithIterFunction Struct Reference

#include <di/container/algorithm/fold_left_with_iter.h>

Public Member Functions

template<concepts::InputIterator Iter, concepts::SentinelFor< Iter > Sent, typename T, concepts::IndirectlyBinaryLeftFoldable< T, Iter > Op>
constexpr auto operator() (Iter first, Sent last, T init, Op op) const
 
template<concepts::InputContainer Con, typename T, concepts::IndirectlyBinaryLeftFoldable< T, meta::ContainerIterator< Con > > Op>
constexpr auto operator() (Con &&container, T init, Op op) const -> InValueResult< meta::BorrowedIterator< Con >, meta::Decay< meta::InvokeResult< Op &, meta::ContainerReference< Con >, T > > >
 

Member Function Documentation

◆ operator()() [1/2]

template<concepts::InputContainer Con, typename T, concepts::IndirectlyBinaryLeftFoldable< T, meta::ContainerIterator< Con > > Op>
auto di::container::detail::FoldLeftWithIterFunction::operator() ( Con && container,
T init,
Op op ) const -> InValueResult<meta::BorrowedIterator<Con>, meta::Decay<meta::InvokeResult<Op&, meta::ContainerReference<Con>, T>>>
inlineconstexpr

◆ operator()() [2/2]

template<concepts::InputIterator Iter, concepts::SentinelFor< Iter > Sent, typename T, concepts::IndirectlyBinaryLeftFoldable< T, Iter > Op>
auto di::container::detail::FoldLeftWithIterFunction::operator() ( Iter first,
Sent last,
T init,
Op op ) const
inlineconstexpr

The documentation for this struct was generated from the following file: