[set] Add << overload for range-sink
This commit is contained in:
parent
a7df5a7bda
commit
689f3f57fa
|
@ -450,7 +450,10 @@ struct hb_set_t
|
|||
bool operator () (hb_codepoint_t k) const { return has (k); }
|
||||
|
||||
/* Sink interface. */
|
||||
hb_set_t& operator << (hb_codepoint_t v) { add (v); return *this; }
|
||||
hb_set_t& operator << (hb_codepoint_t v)
|
||||
{ add (v); return *this; }
|
||||
hb_set_t& operator << (const hb_pair_t<hb_codepoint_t, hb_codepoint_t>& range)
|
||||
{ add_range (range.first, range.second); return *this; }
|
||||
|
||||
bool intersects (hb_codepoint_t first, hb_codepoint_t last) const
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue