[array] Comment
This commit is contained in:
parent
2fecf2aa19
commit
d8d0e06694
|
@ -100,7 +100,10 @@ struct hb_array_t : hb_iter_with_fallback_t<hb_array_t<Type>, Type&>
|
|||
/* Ouch. The operator== compares the contents of the array. For range-based for loops,
|
||||
* it's best if we can just compare arrayZ, though comparing contents is still fast,
|
||||
* but also would require that Type has operator==. As such, we optimize this operator
|
||||
* for range-based for loop and just compare arrayZ and length. */
|
||||
* for range-based for loop and just compare arrayZ and length.
|
||||
*
|
||||
* The above comment is outdated now because we implemented separate begin/end to
|
||||
* objects that were using hb_array_t for range-based loop before. */
|
||||
bool operator != (const hb_array_t& o) const
|
||||
{ return this->arrayZ != o.arrayZ || this->length != o.length; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue