From 689f3f57fa26922af4f2ab451eb834ae6c3119b2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 23 Apr 2020 10:51:12 -0700 Subject: [PATCH] [set] Add << overload for range-sink --- src/hb-set.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hb-set.hh b/src/hb-set.hh index 38bd9c221..b6e2086a2 100644 --- a/src/hb-set.hh +++ b/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& range) + { add_range (range.first, range.second); return *this; } bool intersects (hb_codepoint_t first, hb_codepoint_t last) const {