[set] Add iter_t as alias to const_iter_t
This commit is contained in:
parent
33f8de6186
commit
e4355b1ca1
|
@ -688,8 +688,10 @@ struct hb_set_t
|
||||||
hb_codepoint_t v;
|
hb_codepoint_t v;
|
||||||
unsigned l;
|
unsigned l;
|
||||||
};
|
};
|
||||||
const_iter_t const_iter () { return const_iter_t (*this); }
|
const_iter_t const_iter () const { return const_iter_t (*this); }
|
||||||
operator const_iter_t () { return const_iter (); }
|
operator const_iter_t () const { return const_iter (); }
|
||||||
|
typedef const_iter_t iter_t;
|
||||||
|
iter_t iter () const { return const_iter (); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
#include "hb-iter.hh"
|
#include "hb-iter.hh"
|
||||||
|
|
||||||
#include "hb-array.hh"
|
#include "hb-array.hh"
|
||||||
|
#include "hb-set.hh"
|
||||||
|
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct array_iter_t : hb_iter_t<array_iter_t<T>, T>, hb_iter_mixin_t<array_iter_t<T>, T>
|
struct array_iter_t : hb_iter_t<array_iter_t<T>, T>, hb_iter_mixin_t<array_iter_t<T>, T>
|
||||||
|
|
Loading…
Reference in New Issue