diff --git a/src/hb-dsalgs.hh b/src/hb-dsalgs.hh index b5abb6db1..62d979467 100644 --- a/src/hb-dsalgs.hh +++ b/src/hb-dsalgs.hh @@ -38,6 +38,8 @@ template struct hb_pair_t { + typedef T1 first_t; + typedef T2 second_t; typedef hb_pair_t pair_t; hb_pair_t (const T1& a, const T2& b) : first (a), second (b) {} @@ -51,6 +53,11 @@ struct hb_pair_t template static inline hb_pair_t hb_pair (T1 a, T2 b) { return hb_pair_t (a, b); } +template inline typename Pair::first_t +hb_first (const Pair& pair) { return pair.first; } + +template inline typename Pair::second_t +hb_second (const Pair& pair) { return pair.second; } /* * Bithacks.