[array] Add cast operator to add const to Type
In lieu of constructor removed in previous commit.
This commit is contained in:
parent
15acf33c22
commit
381c3548e9
|
@ -61,6 +61,7 @@ struct hb_array_t
|
|||
explicit_operator bool (void) const { return len; }
|
||||
Type * operator & (void) const { return arrayZ; }
|
||||
Type & operator * (void) { return (this->operator [])[0]; }
|
||||
operator hb_array_t<const Type> (void) { return hb_array_t<const Type> (arrayZ, len); }
|
||||
template <typename T> operator T * (void) const { return arrayZ; }
|
||||
|
||||
hb_array_t<Type> & operator += (unsigned int count)
|
||||
|
|
Loading…
Reference in New Issue