[set] Change to const_iter

This commit is contained in:
Behdad Esfahbod 2018-12-22 15:10:18 -05:00
parent f88fed5cd8
commit 33f8de6186
1 changed files with 4 additions and 4 deletions

View File

@ -671,9 +671,9 @@ struct hb_set_t
/*
* Iterator implementation.
*/
struct iter_t : hb_sorted_iter_t<iter_t, hb_codepoint_t>
struct const_iter_t : hb_sorted_iter_t<const_iter_t, const hb_codepoint_t>
{
iter_t (const hb_set_t &s_) :
const_iter_t (const hb_set_t &s_) :
s (s_), v (INVALID), l (s.get_population () + 1) { __next__ (); }
typedef hb_codepoint_t __item_type__;
@ -688,8 +688,8 @@ struct hb_set_t
hb_codepoint_t v;
unsigned l;
};
iter_t iter () { return iter_t (*this); }
operator iter_t () { return iter (); }
const_iter_t const_iter () { return const_iter_t (*this); }
operator const_iter_t () { return const_iter (); }
protected: