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

/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.pt/
H A Dauto_ptr.C5 template<typename X> struct auto_ptr { struct
10 explicit auto_ptr(X* p =0) throw() : px(p) {} function in struct:auto_ptr
11 auto_ptr(auto_ptr& r) throw() : px(r.release()) {} // ERROR - candidate function in struct:auto_ptr
13 auto_ptr(auto_ptr<Y>& r) throw() : px(r.release()) {}// ERROR - candidate function in struct:auto_ptr
15 auto_ptr& operator=(auto_ptr& r) throw() {
19 template<typename Y> auto_ptr& operator=(auto_ptr<
32 auto_ptr(auto_ptr_ref<X> r) throw() : px(r.py) {} // ERROR - candidate function in struct:auto_ptr
[all...]
/openbsd-current/gnu/lib/libstdc++/libstdc++/testsuite/20_util/
H A Dauto_ptr_neg.cc19 // 20.4.5 Template class auto_ptr negative tests [lib.auto.ptr]
33 std::auto_ptr<Derived>
34 foo() { return std::auto_ptr<Derived>(new Derived); }
39 std::auto_ptr<Base> ptr2;
40 ptr2 = new Base; // { dg-error "no" "candidates" "auto_ptr"}
H A Dauto_ptr.cc19 // 20.4.5 Template class auto_ptr [lib.auto.ptr]
57 // 20.4.5.1 auto_ptr constructors [lib.auto.ptr.cons]
66 std::auto_ptr<A> A_default;
73 std::auto_ptr<A> A_from_A(new A);
80 std::auto_ptr<A> A_from_B(new B);
90 // Construction from std::auto_ptr
97 std::auto_ptr<A> A_from_A(new A);
98 std::auto_ptr<B> B_from_B(new B);
100 std::auto_ptr<A> A_from_ptr_A(A_from_A);
101 std::auto_ptr<
[all...]
/openbsd-current/gnu/llvm/libcxx/include/__memory/
H A Dauto_ptr.h30 class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr class
37 _LIBCPP_INLINE_VISIBILITY explicit auto_ptr(_Tp* __p = 0) _NOEXCEPT : __ptr_(__p) {}
38 _LIBCPP_INLINE_VISIBILITY auto_ptr(auto_ptr& __p) _NOEXCEPT : __ptr_(__p.release()) {}
39 template<class _Up> _LIBCPP_INLINE_VISIBILITY auto_ptr(auto_ptr<_Up>& __p) _NOEXCEPT
41 _LIBCPP_INLINE_VISIBILITY auto_ptr& operator=(auto_ptr& __p) _NOEXCEPT
43 template<class _Up> _LIBCPP_INLINE_VISIBILITY auto_ptr& operator=(auto_ptr<_U
74 class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr<void> class
[all...]
H A Dunique_ptr.h20 #include <__memory/auto_ptr.h>
223 unique_ptr(auto_ptr<_Up>&& __p,
252 operator=(auto_ptr<_Up> __p) {
H A Dshared_ptr.h26 #include <__memory/auto_ptr.h>
683 shared_ptr(auto_ptr<_Yp>&& __r)
784 shared_ptr<_Tp>& operator=(auto_ptr<_Yp>&& __r)
/openbsd-current/gnu/gcc/libstdc++-v3/include/std/
H A Dstd_memory.h126 * A wrapper class to provide auto_ptr with reference semantics.
127 * For example, an auto_ptr can be assigned (or constructed from)
128 * the result of a function which returns an auto_ptr by value.
147 * An @c auto_ptr owns the object it holds a pointer to. Copying
148 * an @c auto_ptr copies the pointer and transfers ownership to the
149 * destination. If more than one @c auto_ptr owns the same object
152 * The uses of @c auto_ptr include providing temporary
156 * auto_ptr does not meet the CopyConstructible and Assignable
159 * instantiating a Standard Library container with an @c auto_ptr
164 * Good examples of what can and cannot be done with auto_ptr ca
174 class auto_ptr class
190 auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } function in class:auto_ptr
199 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } function in class:auto_ptr
212 auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } function in class:auto_ptr
349 auto_ptr(auto_ptr_ref<element_type> __ref) throw() function in class:auto_ptr
[all...]
/openbsd-current/gnu/lib/libstdc++/libstdc++/include/std/
H A Dstd_memory.h121 * A wrapper class to provide auto_ptr with reference semantics. For
122 * example, an auto_ptr can be assigned (or constructed from) the result of
123 * a function which returns an auto_ptr by value.
142 * An @c auto_ptr owns the object it holds a pointer to. Copying an
143 * @c auto_ptr copies the pointer and transfers ownership to the destination.
144 * If more than one @c auto_ptr owns the same object at the same time the
147 * The uses of @c auto_ptr include providing temporary exception-safety for
150 * function. @c auto_ptr does not meet the CopyConstructible and Assignable
153 * @c auto_ptr results in undefined behavior.
157 * Good examples of what can and cannot be done with auto_ptr ca
167 class auto_ptr class in namespace:std
183 auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } function in class:std::auto_ptr
192 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } function in class:std::auto_ptr
204 auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } function in class:std::auto_ptr
333 auto_ptr(auto_ptr_ref<element_type> __ref) throw() function in class:std::auto_ptr
[all...]
/openbsd-current/gnu/gcc/libstdc++-v3/include/tr1/
H A Dboost_shared_ptr.h285 // Special case for auto_ptr<_Tp> to provide the strong guarantee.
288 __shared_count(std::auto_ptr<_Tp>& __r)
588 __shared_ptr(std::auto_ptr<_Tp1>& __r)
630 operator=(std::auto_ptr<_Tp1>& __r)
999 shared_ptr(std::auto_ptr<_Tp1>& __r)
1024 operator=(std::auto_ptr<_Tp1>& __r)
/openbsd-current/gnu/lib/libcxx/
H A DMakefile513 __memory/auto_ptr.h \

Completed in 203 milliseconds