1
0
Fork 0

Update trees/sparse_table.cc

Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
subcrip 2024-10-30 18:23:46 +08:00
parent 68ccdc21fa
commit 76d3162b3a
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
template<typename _Tp, typename _Op = function<_Tp(const _Tp&, const _Tp&)>> struct sparse_table {
_Op op;
vector<vector<_Tp>> st;
sparse_table() {}
template <typename ReverseIterator>
sparse_table(ReverseIterator __first, ReverseIterator __last, _Op&& __operation) {
op = __operation;