Searched refs:RefPtr (Results 1 – 10 of 10) sorted by relevance
14 template <typename T> struct RefPtr { struct17 RefPtr() : t(new T) {} in RefPtr() argument18 RefPtr(T *t) : t(t) {} in RefPtr() argument22 RefPtr &operator=(T *) { return *this; } argument25 template <typename T> bool operator==(const RefPtr<T> &, const RefPtr<T> &) {29 template <typename T> bool operator==(const RefPtr<T> &, T *) { return false; }31 template <typename T> bool operator==(const RefPtr<T> &, T &) { return false; }33 template <typename T> bool operator!=(const RefPtr<T> &, const RefPtr<T> &) {37 template <typename T> bool operator!=(const RefPtr<T> &, T *) { return false; }39 template <typename T> bool operator!=(const RefPtr<T> &, T &) { return false; }
26 RefPtr<RefCountable> foo; in foo1()31 RefPtr<RefCountable> foo; in foo2()38 RefPtr<RefCountable> foo; in foo3()46 RefPtr<RefCountable> foo; in foo4()69 RefPtr<RefCountable> foo; in foo1()74 RefPtr<RefCountable> foo; in foo2()
12 RefPtr<RefCountable> b;33 RefPtr<RefCountable> b;38 union RefPtr { union42 void forceTmplToInstantiate(RefPtr<RefCountable>) {} in forceTmplToInstantiate()
274 RefPtr<RefCountable> a(provide()); in foo()286 RefPtr<RefCountable> bar; in foo()
3 template<typename T> struct RefPtr { struct4 …RefPtr& operator=(const RefPtr&) { int a[sizeof(T) ? -1 : -1];} // expected-error 2 {{array with a… in operator =() argument5 RefPtr& operator=(const PassRefPtr<T>&);8 struct A { RefPtr<int> a; }; // expected-note {{instantiation of member function 'RefPtr<int>::ope…9 struct B : RefPtr<float> { }; // expected-note {{in instantiation of member function 'RefPtr<float>…
179 struct RefPtr { struct181 ~RefPtr() { m_ptr->deref(); } in ~RefPtr() argument189 RefPtr<DeclaredOnly> m_insertionStyle;202 struct RefPtr { struct204 …~RefPtr() { m_ptr->deref(); } // expected-error {{member access into incomplete type 'vtable_uses… in ~RefPtr()212 RefPtr<DeclaredOnly> m_insertionStyle;
91 template <class T> struct RefPtr { struct93 ~RefPtr() { in ~RefPtr() argument106 RefPtr<Node> m;110 RefPtr<B> b; in f()
17 template<typename> struct RefPtr { }; struct21 template<typename T> struct PtrHash<RefPtr<T> > : PtrHash<T*> {
47 struct RefPtr { struct
1424 - *Ref-counted type* is either ``Ref<T>`` or ``RefPtr<T>``.1425 …- *Ref-countable type* is any type that implements ``ref()`` and ``deref()`` methods as ``RefPtr<>…2845 RefPtr<RefCountable> member;2864 RefPtr<RefCountable> rc = makeRef(provide_uncounted());2912 RefPtr<RefCountable> counted;2919 void foo2(RefPtr<RefCountable> counted_param) {2941 RefPtr<RefCountable> counted;