[iter] Make hb_sink function-object

This commit is contained in:
Behdad Esfahbod 2019-02-14 11:00:10 -08:00
parent bb139cb8d0
commit b530573ad9
1 changed files with 6 additions and 5 deletions

View File

@ -383,11 +383,12 @@ struct hb_sink_t
private: private:
Sink s; Sink s;
}; };
template <typename Sink> static const struct
inline hb_sink_t<Sink> {
hb_sink (Sink&& s) template <typename Sink> hb_sink_t<Sink>
operator () (Sink&& s) const
{ return hb_sink_t<Sink> (s); } { return hb_sink_t<Sink> (s); }
} hb_sink HB_UNUSED;
/* /*