Add SortedArray{16,32}Of<>
diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh
index 6220501..ab25e96 100644
--- a/src/hb-open-type.hh
+++ b/src/hb-open-type.hh
@@ -891,7 +891,7 @@
};
/* An array with sorted elements. Supports binary searching. */
-template <typename Type, typename LenType=HBUINT16>
+template <typename Type, typename LenType>
struct SortedArrayOf : ArrayOf<Type, LenType>
{
hb_sorted_array_t< Type> as_array () { return hb_sorted_array (this->arrayZ, this->len); }
@@ -942,6 +942,9 @@
{ return as_array ().bfind (x, i, not_found, to_store); }
};
+template <typename Type> using SortedArray16Of = SortedArrayOf<Type, HBUINT16>;
+template <typename Type> using SortedArray32Of = SortedArrayOf<Type, HBUINT32>;
+
/*
* Binary-search arrays
*/