[set] Add << overload for range-sink

pull/2374/head
Behdad Esfahbod 5 years ago
parent a7df5a7bda
commit 689f3f57fa
  1. 5
      src/hb-set.hh

@ -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…
Cancel
Save