[vector] Add operator bool
This commit is contained in:
parent
bd36977392
commit
a728c63a98
@ -89,6 +89,8 @@ struct hb_vector_t
|
||||
return arrayZ()[i];
|
||||
}
|
||||
|
||||
explicit_operator bool () const { return len; }
|
||||
|
||||
hb_array_t<Type> as_array ()
|
||||
{ return hb_array (arrayZ(), len); }
|
||||
hb_array_t<const Type> as_array () const
|
||||
|
Loading…
Reference in New Issue
Block a user