Add hb_pair_t(,) macro as alternative to hb_pair_t<,>

Just so it's easier to use it in other macros.
This commit is contained in:
Behdad Esfahbod 2019-05-09 13:15:36 -07:00
parent c9b287a867
commit 98eec3dd5f

View File

@ -222,6 +222,7 @@ struct hb_pair_t
T1 first;
T2 second;
};
#define hb_pair_t(T1,T2) hb_pair_t<T1, T2>
template <typename T1, typename T2> static inline hb_pair_t<T1, T2>
hb_pair (T1&& a, T2&& b) { return hb_pair_t<T1, T2> (a, b); }