[set] Add iter_t as alias to const_iter_t

This commit is contained in:
Behdad Esfahbod 2018-12-22 16:11:22 -05:00
parent 33f8de6186
commit e4355b1ca1
2 changed files with 6 additions and 2 deletions

View File

@ -688,8 +688,10 @@ struct hb_set_t
hb_codepoint_t v;
unsigned l;
};
const_iter_t const_iter () { return const_iter_t (*this); }
operator const_iter_t () { return const_iter (); }
const_iter_t const_iter () const { return const_iter_t (*this); }
operator const_iter_t () const { return const_iter (); }
typedef const_iter_t iter_t;
iter_t iter () const { return const_iter (); }
protected:

View File

@ -28,6 +28,8 @@
#include "hb-iter.hh"
#include "hb-array.hh"
#include "hb-set.hh"
template <typename T>
struct array_iter_t : hb_iter_t<array_iter_t<T>, T>, hb_iter_mixin_t<array_iter_t<T>, T>