mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
[iter] Make hb_map into function-object
This commit is contained in:
1 parent
c1e5ba81fe
commit
98be7bd77a
1 file changed
+7
-4
+7
-4
@@ -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))>
|
||||
|
||||
Reference in new issue
Block a user