diff --git a/include/ircd/json/tuple.h b/include/ircd/json/tuple.h index 7b7b43d42..475ab94fe 100644 --- a/include/ircd/json/tuple.h +++ b/include/ircd/json/tuple.h @@ -455,6 +455,30 @@ until(tuple &t, false; } +template +typename std::enable_if(), bool>::type +until(const tuple &a, + const tuple &b, + function&& f) +{ + return true; +} + +template +typename std::enable_if(), bool>::type +until(const tuple &a, + const tuple &b, + function&& f) +{ + return f(key(a), val(a), val(b))? + until(a, b, std::forward(f)): + false; +} + template