[array] Add constructor from hb_array_t<const Type>

This commit is contained in:
Behdad Esfahbod 2018-12-16 23:43:17 -05:00
parent 92680361ec
commit 7c0e3e9b2b
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ struct hb_array_t
hb_array_t (void) : arrayZ (nullptr), len (0) {} hb_array_t (void) : arrayZ (nullptr), len (0) {}
hb_array_t (const hb_array_t &o) : arrayZ (o.arrayZ), len (o.len) {} hb_array_t (const hb_array_t &o) : arrayZ (o.arrayZ), len (o.len) {}
hb_array_t (hb_array_t<const Type> o) : arrayZ (o.arrayZ), len (o.len) {}
hb_array_t (Type *array_, unsigned int len_) : arrayZ (array_), len (len_) {} hb_array_t (Type *array_, unsigned int len_) : arrayZ (array_), len (len_) {}
Type& operator [] (int i_) const Type& operator [] (int i_) const