We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b26d127 commit 955e2f6Copy full SHA for 955e2f6
library/data_structures_[l,r]/seg_tree_uncommon/walk.hpp
@@ -1,4 +1,4 @@
1
-T walk(int l, int r, function<bool(T)> f) {
+T walk(int l, int r, const auto& f) {
2
for (l += n, r += n; l <= r;)
3
if (int u = nxt(l, r); f(s[u])) {
4
while (u < n)
0 commit comments