From 75fd845a4abccc2596f0e1fe2294f936199e61f3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 16 Apr 2019 17:22:29 -0400 Subject: [PATCH] Move around --- src/hb-algs.hh | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/hb-algs.hh b/src/hb-algs.hh index ab1caa031..485c139b9 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -34,6 +34,18 @@ #include "hb-null.hh" +struct +{ + template T + operator () (const T& v) const { return v; } +} HB_FUNCOBJ (hb_identity); + +struct +{ + template bool + operator () (const T& v) const { return bool (v); } +} HB_FUNCOBJ (hb_bool); + struct { /* Don't know how to set priority of following. Doesn't work right now. */ @@ -59,19 +71,6 @@ struct } } HB_FUNCOBJ (hb_hash); -struct -{ - template T - operator () (const T& v) const { return v; } -} HB_FUNCOBJ (hb_identity); - -struct -{ - template bool - operator () (const T& v) const { return bool (v); } -} HB_FUNCOBJ (hb_bool); - - struct { private: