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

op folds an item T with an accumulator Acc from the right. 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, 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.
Definition ah-dry.H:284
std::decay_t< typename HeadC::Item_Type > T
Definition ah-zip.H:152

Detailed Description

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
Opthe folding operation.
Accthe accumulator type.
Tthe item type.

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