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

Binary operation compatible with Fenwick tree group functors. More...

#include <tpl_fenwick_tree.H>

Concept definition

template<typename F, typename T>
requires(const F& f, const T& a, const T& b)
{
{ f(a, b) } -> std::convertible_to<T>;
}
Binary operation compatible with Fenwick tree group functors.
std::decay_t< typename HeadC::Item_Type > T
Definition ah-zip.H:107
DynList< T > maps(const C &c, Op op)
Classic map operation.

Detailed Description

Binary operation compatible with Fenwick tree group functors.

Requires the functor to be callable with two (logically) immutable values of type T and return a value convertible to T. The functor itself is also required to be callable through a const reference, matching usage from const member functions in Gen_Fenwick_Tree.

Definition at line 103 of file tpl_fenwick_tree.H.