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.
std::decay_t< typename HeadC::Item_Type > T
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
-
| Op | the folding operation. |
| Acc | the accumulator type. |
| T | the item type. |
Definition at line 270 of file ah-dry.H.