mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +01:00
[iter] Fix __end__()
This commit is contained in:
1 parent
95265aeab7
commit
20f14b4aa6
1 file changed
+3
-3
+3
-3
@@ -84,9 +84,9 @@ struct hb_iter_t
|
||||
item_t& __item__ () const { return thiz()->item_at (0); }
|
||||
item_t& __item_at__ (unsigned i) const { return *(thiz() + i); }
|
||||
|
||||
/* Termination: Implement __more__() or __end__(). */
|
||||
bool __more__ () const { return item () != thiz()->__end__ (); }
|
||||
const item_t& __end__ () const { return iter_t::__sentinel__; }
|
||||
/* Termination: Implement __more__(), or __end__() and operator ==. */
|
||||
bool __more__ () const { return !(*thiz() == thiz()->__end__ ()); }
|
||||
iter_t __end__ () const;
|
||||
|
||||
/* Advancing: Implement __next__(), or __forward__() if random-access. */
|
||||
void __next__ () { thiz()->forward (1); }
|
||||
|
||||
Reference in new issue
Block a user