This commit is contained in:
Behdad Esfahbod 2018-12-21 01:57:40 -05:00
parent aeb696a91c
commit 879faa2aee
3 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ struct hb_sorted_array_t;
template <typename Type>
struct hb_array_t
{
typedef Type item_type_t;
typedef Type item_t;
enum { item_size = hb_static_size (Type) };
/*

View File

@ -352,7 +352,7 @@ static inline Type& operator + (Base &base, OffsetTo<Type, OffsetType, has_null>
template <typename Type>
struct UnsizedArrayOf
{
typedef Type item_type_t;
typedef Type item_t;
enum { item_size = hb_static_size (Type) };
HB_NO_CREATE_COPY_ASSIGN_TEMPLATE (UnsizedArrayOf, Type);
@ -508,7 +508,7 @@ struct SortedUnsizedArrayOf : UnsizedArrayOf<Type>
template <typename Type, typename LenType=HBUINT16>
struct ArrayOf
{
typedef Type item_type_t;
typedef Type item_t;
enum { item_size = hb_static_size (Type) };
HB_NO_CREATE_COPY_ASSIGN_TEMPLATE2 (ArrayOf, Type, LenType);

View File

@ -34,7 +34,7 @@
template <typename Type, unsigned int PreallocedCount=8>
struct hb_vector_t
{
typedef Type item_type_t;
typedef Type item_t;
enum { item_size = hb_static_size (Type) };
HB_NO_COPY_ASSIGN_TEMPLATE2 (hb_vector_t, Type, PreallocedCount);