提交 98eec3dd 编写于 作者: B Behdad Esfahbod

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

Just so it's easier to use it in other macros.
上级 c9b287a8
...@@ -222,6 +222,7 @@ struct hb_pair_t ...@@ -222,6 +222,7 @@ struct hb_pair_t
T1 first; T1 first;
T2 second; 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> 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); } hb_pair (T1&& a, T2&& b) { return hb_pair_t<T1, T2> (a, b); }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册