[iter] Make hb_map into function-object
This commit is contained in:
parent
c1e5ba81fe
commit
98be7bd77a
|
@ -281,10 +281,13 @@ struct hb_map_iter_factory_t
|
||||||
private:
|
private:
|
||||||
Proj f;
|
Proj f;
|
||||||
};
|
};
|
||||||
template <typename Proj>
|
static const struct
|
||||||
inline hb_map_iter_factory_t<Proj>
|
{
|
||||||
hb_map (Proj&& f)
|
template <typename Proj>
|
||||||
{ return hb_map_iter_factory_t<Proj> (f); }
|
hb_map_iter_factory_t<Proj>
|
||||||
|
operator () (Proj&& f) const
|
||||||
|
{ return hb_map_iter_factory_t<Proj> (f); }
|
||||||
|
} hb_map HB_UNUSED;
|
||||||
|
|
||||||
template <typename Iter, typename Pred, typename Proj,
|
template <typename Iter, typename Pred, typename Proj,
|
||||||
hb_enable_if (hb_is_iterator (Iter))>
|
hb_enable_if (hb_is_iterator (Iter))>
|
||||||
|
|
Loading…
Reference in New Issue