Lines Matching refs:reset
296 void reset() { bar.reset(); }
302 (new foo)->reset();
319 a->b.reset(new StructB);
320 a->b->a.reset(a);
322 // Break the cycle by calling reset(). This will cause |a| (and hence, |a.b|)
323 // to be deleted before the call to reset() returns. This tests that the
324 // implementation of sk_sp::reset() doesn't access |this| after it
326 // definition of unique_ptr::reset in C++11.
327 a->b.reset();
348 // Test that reset() "adopts" ownership from the caller, even if we are given the same ptr twice
355 sp.reset(rc);
362 sp.reset(rc); // this should transfer our ownership over to sp