Lines Matching refs:auto_ptr
6 This check replaces the uses of the deprecated class ``std::auto_ptr`` by
15 -void take_ownership_fn(std::auto_ptr<int> int_ptr);
19 - std::auto_ptr<int> a(new int(x));
20 - std::auto_ptr<int> b;
40 * Client code that declares a reference to an ``std::auto_ptr`` coming from
45 ``std::unique_ptr`` from an ``std::auto_ptr``. This pattern doesn't make much
46 sense and usually ``std::auto_ptr`` are stored by value (otherwise what is
52 std::auto_ptr<int> get_value();
53 const std::auto_ptr<int> & get_ref();
56 -std::auto_ptr<int> a(get_value());
57 +std::unique_ptr<int> a(get_value()); // ok, unique_ptr constructed from auto_ptr
59 -const std::auto_ptr<int> & p = get_ptr();
68 std::auto_ptr<X> p;