Searched refs:auto_ptr (Results 1 - 25 of 45) sorted by relevance

12

/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/auto_ptr/requirements/explicit_instantiation/
H A D1.cc25 template class std::auto_ptr<int>; member in class:std
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/warn/
H A Dchanges-meaning.C4 template <class _Tp> class auto_ptr {}; /* { dg-warning "changes meaning" } */ class
9 auto_ptr<_Tp> auto_ptr(); /* { dg-warning "" } */
H A Danonymous-namespace-3.C7 struct B { std::auto_ptr<A> p; };
12 std::auto_ptr<A> p;
15 // { dg-prune-output "auto_ptr. is deprecated" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/parse/
H A Dcrash12.C7 template <class _Tp> class auto_ptr {}; class
12 counted_ptr(::auto_ptr<_Tp>& __a); // { dg-error "candidate" }
13 ::auto_ptr<_Tp> auto_ptr();
17 inline counted_ptr<_Tp>::counted_ptr(class auto_ptr& __a) // { dg-error "required|not match|template" }
22 inline class auto_ptr<_Tp> counted_ptr<_Tp>::auto_ptr() function in class:counted_ptr
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/overload/
H A Dautoptr1.C4 class auto_ptr class
8 auto_ptr(auto_ptr&);
9 auto_ptr(auto_ptr_ref);
24 void f(auto_ptr< X >);
26 void g(reference_wrapper< auto_ptr< X > > r)
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.pt/
H A Dauto_ptr.C6 template<typename X> struct auto_ptr { struct
11 explicit auto_ptr(X* p =0) throw() : px(p) {} function in struct:auto_ptr
12 auto_ptr(auto_ptr& r) throw() : px(r.release()) {} // { dg-message "note" } candidate function in struct:auto_ptr
14 auto_ptr(auto_ptr<Y>& r) throw() : px(r.release()) {} function in struct:auto_ptr
16 auto_ptr& operator=(auto_ptr& r) throw() {
20 template<typename Y> auto_ptr& operator=(auto_ptr<
33 auto_ptr(auto_ptr_ref<X> r) throw() : px(r.py) {} function in struct:auto_ptr
[all...]
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/init/
H A Dcall1.C14 struct auto_ptr { struct
17 auto_ptr(T* __p) : p(__p) { } function in struct:auto_ptr
18 ~auto_ptr() { delete p; }
27 void destroy (auto_ptr a) {
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/auto_ptr/
H A D3946.cc18 // 20.4.5 Template class auto_ptr [lib.auto.ptr]
28 std::auto_ptr<Derived>
29 conversiontest08() { return std::auto_ptr<Derived>(new Derived); }
34 std::auto_ptr<Base> ptr;
H A Dassign_neg.cc20 // 20.4.5 Template class auto_ptr negative tests [lib.auto.ptr]
31 std::auto_ptr<Derived>
32 foo() { return std::auto_ptr<Derived>(new Derived); }
37 std::auto_ptr<Base> ptr2;
48 // { dg-error "::auto_ptr|no known conversion" "" { target *-*-* } 136 }
50 // { dg-error "::auto_ptr|no known conversion" "" { target *-*-* } 264 }
H A D7.cc18 // 20.4.5 Template class auto_ptr [lib.auto.ptr]
55 // 20.4.5.3 auto_ptr conversions [lib.auto.ptr.conv]
59 static std::auto_ptr<T> source()
61 return std::auto_ptr<T>(new T);
65 static void drain(std::auto_ptr<T>)
H A D4.cc18 // 20.4.5 Template class auto_ptr [lib.auto.ptr]
64 std::auto_ptr<A> A_from_A(new A);
65 std::auto_ptr<A> A_from_B(new B);
66 std::auto_ptr<B> B_from_B(new B);
H A D3.cc18 // 20.4.5 Template class auto_ptr [lib.auto.ptr]
55 // Assignment from std::auto_ptr
62 std::auto_ptr<A> A_from_ptr_A;
63 std::auto_ptr<A> A_from_ptr_B;
64 std::auto_ptr<A> A_from_A(new A);
65 std::auto_ptr<B> B_from_B(new B);
H A D2.cc18 // 20.4.5 Template class auto_ptr [lib.auto.ptr]
55 // Construction from std::auto_ptr
62 std::auto_ptr<A> A_from_A(new A);
63 std::auto_ptr<B> B_from_B(new B);
65 std::auto_ptr<A> A_from_ptr_A(A_from_A);
66 std::auto_ptr<A> A_from_ptr_B(B_from_B);
/haiku-buildtools/legacy/gcc/libstdc++/stl/
H A Dmemory30 template <class _Tp> class auto_ptr {
36 explicit auto_ptr(_Tp* __p = 0) __STL_NOTHROW : _M_ptr(__p) {}
37 auto_ptr(auto_ptr& __a) __STL_NOTHROW : _M_ptr(__a.release()) {}
38 template <class _Tp1> auto_ptr(auto_ptr<_Tp1>& __a) __STL_NOTHROW
40 auto_ptr& operator=(auto_ptr& __a) __STL_NOTHROW {
48 auto_ptr& operator=(auto_ptr<_Tp
[all...]
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/torture/
H A Dpr33340.C3 struct auto_ptr { struct
5 ~auto_ptr() { delete p; }
19 auto_ptr ap;
H A Dpr33572.C9 std::auto_ptr<Foo> foo;
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/shared_ptr/assign/
H A Dauto_ptr_rvalue.cc27 std::auto_ptr<A> source() { return std::auto_ptr<A>(); }
31 // Assignment from rvalue auto_ptr
49 std::auto_ptr<A> au;
H A Dauto_ptr_neg.cc31 // Assignment from incompatible auto_ptr<Y>
38 std::auto_ptr<B> b;
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/shared_ptr/cons/
H A Dauto_ptr_neg.cc29 // Construction from const auto_ptr
33 const std::auto_ptr<A> a;
H A D43820_neg.cc28 // get an auto_ptr rvalue
29 std::auto_ptr<X>&& ap();
H A Dauto_ptr.cc29 // Construction from auto_ptr
35 std::auto_ptr<A> a(new A);
/haiku-buildtools/gcc/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/
H A Dauto_ptr_rvalue_neg.cc26 std::auto_ptr<A> source() { return std::auto_ptr<A>(); }
30 // Assignment from rvalue auto_ptr
/haiku-buildtools/gcc/libstdc++-v3/include/backward/
H A Dauto_ptr.h0 // auto_ptr implementation -*- C++ -*-
25 /** @file backward/auto_ptr.h
41 * A wrapper class to provide auto_ptr with reference semantics.
42 * For example, an auto_ptr can be assigned (or constructed from)
43 * the result of a function which returns an auto_ptr by value.
62 * An @c auto_ptr owns the object it holds a pointer to. Copying
63 * an @c auto_ptr copies the pointer and transfers ownership to the
64 * destination. If more than one @c auto_ptr owns the same object
67 * The uses of @c auto_ptr include providing temporary
71 * auto_ptr doe
87 class auto_ptr class
103 auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } function in class:auto_ptr
112 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } function in class:auto_ptr
125 auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } function in class:auto_ptr
260 auto_ptr(auto_ptr_ref<element_type> __ref) throw() function in class:auto_ptr
286 class auto_ptr<void> class
[all...]
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/unique_ptr/cons/
H A Dauto_ptr_neg.cc29 // Construction from const auto_ptr
33 const std::auto_ptr<A> a(new A);
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/shared_ptr/creation/
H A Ddr925.cc35 std::auto_ptr<A>
38 return std::auto_ptr<A>(new A());
52 // Implicit conversion of auto_ptr to shared_ptr is allowed
63 std::auto_ptr<A> a = create_auto_ptr();

Completed in 200 milliseconds

12