template<class Op, class Acc, class T>
requires(Acc & acc, Op & op,
const T & item) { acc = std::invoke(op, item, std::move(acc)); }
or
requires(Acc & acc, Op & op,
const T & item) { acc = std::invoke(op, item, acc); }
op folds an item T with an accumulator Acc from the right.
std::decay_t< typename HeadC::Item_Type > T
op folds an item T with an accumulator Acc from the right.
acc = op(item, acc) must be valid, with the accumulator passed as an lvalue or as an rvalue.
- Template Parameters
-
| Op | the folding operation. |
| Acc | the accumulator type. |
| T | the item type. |
Definition at line 284 of file ah-dry.H.