Searched refs:CountedReference (Results 1 – 3 of 3) sorted by relevance
35 template <typename A> class CountedReference {38 CountedReference() {} in CountedReference() function39 CountedReference(type *m) : p_{m} { Take(); } in CountedReference() function40 CountedReference(const CountedReference &c) : p_{c.p_} { Take(); } in CountedReference() function41 CountedReference(CountedReference &&c) : p_{c.p_} { c.p_ = nullptr; } in CountedReference() function42 CountedReference &operator=(const CountedReference &c) {48 CountedReference &operator=(CountedReference &&c) {55 ~CountedReference() { Drop(); } in ~CountedReference()
135 static auto Unwrap(const CountedReference<B> &p) -> Constify<A, B> * {
144 using Reference = common::CountedReference<Message>;