Add ArrayOf::pop()

This commit is contained in:
Behdad Esfahbod 2019-08-28 13:49:35 -07:00
parent 307bd6d79f
commit 3ca809e362
1 changed files with 2 additions and 0 deletions

View File

@ -572,6 +572,8 @@ struct ArrayOf
explicit operator bool () const { return len; } explicit operator bool () const { return len; }
void pop () { len--; }
hb_array_t< Type> as_array () { return hb_array (arrayZ, len); } hb_array_t< Type> as_array () { return hb_array (arrayZ, len); }
hb_array_t<const Type> as_array () const { return hb_array (arrayZ, len); } hb_array_t<const Type> as_array () const { return hb_array (arrayZ, len); }