1 // bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq 2 3 namespace detail { 4 template<typename T> 5 struct PointerType { 6 typedef T* Type; 7 }; 8 } 9 template<typename T> 10 class UniquePtr { 11 typedef typename detail::PointerType<T> Pointer; 12 }; 13