diff --git a/src/hb-algs.hh b/src/hb-algs.hh index 788689478..78b86f37a 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -994,6 +994,18 @@ struct operator () (const T &a) const HB_AUTO_RETURN (-a) } HB_FUNCOBJ (hb_neg); +struct +{ + template constexpr auto + operator () (const T &a) const HB_AUTO_RETURN (++a) +} +HB_FUNCOBJ (hb_inc); +struct +{ + template constexpr auto + operator () (const T &a) const HB_AUTO_RETURN (--a) +} +HB_FUNCOBJ (hb_dec); /* Compiler-assisted vectorization. */