Add hb_ref()
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 7 May 2019 06:39:13 +0000 (23:39 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 7 May 2019 06:39:13 +0000 (23:39 -0700)
Unused.

src/hb-meta.hh

index f7699d7..9ca63cd 100644 (file)
@@ -128,6 +128,16 @@ struct
 
 } HB_FUNCOBJ (hb_deref);
 
+struct
+{
+  template <typename T> auto
+  operator () (T&& v) const HB_AUTO_RETURN (hb_forward<T> (v))
+
+  template <typename T> auto
+  operator () (T& v) const HB_AUTO_RETURN (hb_addressof (v))
+
+} HB_FUNCOBJ (hb_ref);
+
 
 template<bool B, typename T = void> struct hb_enable_if {};
 template<typename T>                struct hb_enable_if<true, T> { typedef T type; };