[iter] Make hb_sink function-object
This commit is contained in:
parent
bb139cb8d0
commit
b530573ad9
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue