[array] Add operator *

This commit is contained in:
Behdad Esfahbod 2018-12-17 00:06:40 -05:00
parent 68d4a5eee0
commit 94e72cf1c9
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ struct hb_array_t
Type * operator & (void) const { return arrayZ; }
Type & operator * (void) { return (this->operator [])[0]; }
hb_array_t<Type> & operator += (unsigned int count)
{
if (unlikely (count > len))