|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Concept constraining a policy for Mo's algorithm. More...
#include <tpl_mo_algorithm.H>
Concept constraining a policy for Mo's algorithm.
A valid MoPolicy must provide:
answer_type — the result type for a single query.init(data, n) — reset internal state before the sweep.add(data, idx) — expand the current window to include data(idx).remove(data, idx) — shrink the current window by removing data(idx).answer() — return the answer for the current window.| P | Policy type. |
| T | Element type of the data array. |
Definition at line 103 of file tpl_mo_algorithm.H.