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

Binary operation compatible with Segment Tree queries. More...

#include <tpl_segment_tree.H>

Concept definition

template<typename F, typename T>
A binary functor closed over T.
Binary operation compatible with Segment Tree queries.

Detailed Description

Binary operation compatible with Segment Tree queries.

This concept is used by Gen_Segment_Tree to constrain the binary operation passed as template parameter.

Template Parameters
FBinary functor type.
TValue type.

Alias of Aleph::ClosedBinaryOp kept for source compatibility.

Note
This concept only checks the call signature. For correctness of range queries, F must define an associative operation and the caller must provide a correct identity element where required.

Definition at line 99 of file tpl_segment_tree.H.