[iter] Make hb_zip() a function-object
This commit is contained in:
parent
f8fcfb263e
commit
aa4c321262
|
@ -358,11 +358,14 @@ struct hb_zip_iter_t :
|
||||||
A a;
|
A a;
|
||||||
B b;
|
B b;
|
||||||
};
|
};
|
||||||
|
static const struct
|
||||||
|
{
|
||||||
template <typename A, typename B,
|
template <typename A, typename B,
|
||||||
hb_enable_if (hb_is_iterable (A) && hb_is_iterable (B))>
|
hb_enable_if (hb_is_iterable (A) && hb_is_iterable (B))>
|
||||||
inline hb_zip_iter_t<hb_iter_t (A), hb_iter_t (B)>
|
hb_zip_iter_t<hb_iter_t (A), hb_iter_t (B)>
|
||||||
hb_zip (const A& a, const B &b)
|
operator () (const A& a, const B &b) const
|
||||||
{ return hb_zip_iter_t<hb_iter_t (A), hb_iter_t (B)> (a.iter (), b.iter ()); }
|
{ return hb_zip_iter_t<hb_iter_t (A), hb_iter_t (B)> (a.iter (), b.iter ()); }
|
||||||
|
} hb_zip HB_UNUSED;
|
||||||
|
|
||||||
/* hb_sink() */
|
/* hb_sink() */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue