From 40a479797add42fa42b78d4267920ef75bfb6b9a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 8 May 2014 18:21:04 -0400 Subject: [PATCH] [otlayout] Add GenericSortedArrayOf --- src/hb-open-type-private.hh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 5a01a81d3..79ac7198c 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -949,9 +949,9 @@ struct HeadlessArrayOf /* An array with sorted elements. Supports binary searching. */ -template -struct SortedArrayOf : ArrayOf { - +template +struct GenericSortedArrayOf : GenericArrayOf +{ template inline int search (const SearchType &x) const { @@ -972,6 +972,10 @@ struct SortedArrayOf : ArrayOf { } }; +/* A sorted array with a USHORT number of elements. */ +template +struct SortedArrayOf : GenericSortedArrayOf {}; + } /* namespace OT */