[iter] Add operator>> and operator<<
diff --git a/src/hb-iter.hh b/src/hb-iter.hh
index 71a1667..2e767ef 100644
--- a/src/hb-iter.hh
+++ b/src/hb-iter.hh
@@ -84,6 +84,10 @@
iter_t operator ++ (int) { iter_t c (*thiz()); ++*thiz(); return c; }
iter_t operator - (unsigned count) const { auto c = thiz()->iter (); c -= count; return c; }
iter_t operator -- (int) { iter_t c (*thiz()); --*thiz(); return c; }
+ template <typename T>
+ iter_t& operator >> (T &v) { v = **thiz(); ++*thiz(); return *thiz(); }
+ template <typename T>
+ iter_t& operator << (const T v) { **thiz() = v; ++*thiz(); return *thiz(); }
protected:
hb_iter_t () {}