提交 98be7bd7 编写于 作者: B Behdad Esfahbod

[iter] Make hb_map into function-object

上级 c1e5ba81
......@@ -281,10 +281,13 @@ struct hb_map_iter_factory_t
private:
Proj f;
};
template <typename Proj>
inline hb_map_iter_factory_t<Proj>
hb_map (Proj&& f)
{ return hb_map_iter_factory_t<Proj> (f); }
static const struct
{
template <typename Proj>
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,
hb_enable_if (hb_is_iterator (Iter))>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册