Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::dry_detail::FoldOperation Concept Reference

op folds an accumulator Acc with an item T. More...

#include <ah-dry.H>

Concept definition

template<class Op, class Acc, class T>
requires(Acc & acc, Op & op, const T & item) { acc = std::invoke(op, std::move(acc), item); }
or requires(Acc & acc, Op & op, const T & item) { acc = std::invoke(op, acc, item); }
op folds an accumulator Acc with an item T.
Definition ah-dry.H:270
std::decay_t< typename HeadC::Item_Type > T
Definition ah-zip.H:152

Detailed Description

op folds an accumulator Acc with an item T.

acc = op(acc, item) must be valid, with the accumulator passed as an lvalue or as an rvalue.

Template Parameters
Opthe folding operation.
Accthe accumulator type.
Tthe item type.

Definition at line 270 of file ah-dry.H.