Lines Matching refs:ref
77 ref_holder(const ref_holder &ref) :
78 ref_holder(*ref.p) {
81 ref_holder(ref_holder &&ref) :
82 p(ref.p) {
83 ref.p = NULL;
92 operator=(ref_holder ref) {
93 std::swap(ref.p, p);
98 operator==(const ref_holder &ref) const {
99 return p == ref.p;
103 operator!=(const ref_holder &ref) const {
104 return p != ref.p;
144 operator==(const intrusive_ptr &ref) const {
145 return p == ref.p;
149 operator!=(const intrusive_ptr &ref) const {
150 return p != ref.p;
191 intrusive_ref(const intrusive_ref &ref) :
192 intrusive_ref(*ref.p) {
195 intrusive_ref(intrusive_ref &&ref) :
196 p(ref.p) {
197 ref.p = NULL;
206 operator=(intrusive_ref ref) {
207 std::swap(ref.p, p);
212 operator==(const intrusive_ref &ref) const {
213 return p == ref.p;
217 operator!=(const intrusive_ref &ref) const {
218 return p != ref.p;
241 intrusive_ref<T> ref { *new T(std::forward<As>(as)...) };
242 ref().release();
243 return ref;