提交 a728c63a 编写于 作者: B Behdad Esfahbod

[vector] Add operator bool

上级 bd369773
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册