Home
last modified time | relevance | path

Searched refs:auto_ptr (Results 1 – 25 of 40) sorted by relevance

12

/openbsd-src/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) {} in throw() argument
11 auto_ptr(auto_ptr& r) throw() : px(r.release()) {} // ERROR - candidate in throw() argument
13 auto_ptr(auto_ptr<Y>& r) throw() : px(r.release()) {}// ERROR - candidate in auto_ptr() argument
15 auto_ptr& operator=(auto_ptr& r) throw() { in throw() argument
19 template<typename Y> auto_ptr& operator=(auto_ptr<Y>& r) throw() { in throw() argument
24 ~auto_ptr() { delete px; } in ~auto_ptr() argument
32 auto_ptr(auto_ptr_ref<X> r) throw() : px(r.py) {} // ERROR - candidate in throw() argument
36 template<typename Y> operator auto_ptr<Y>() throw() { in auto_ptr() argument
37 return auto_ptr<Y>(release()); in auto_ptr()
[all …]
/openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/20_util/
H A Dauto_ptr.cc66 std::auto_ptr<A> A_default; in test01()
73 std::auto_ptr<A> A_from_A(new A); in test01()
80 std::auto_ptr<A> A_from_B(new B); in test01()
97 std::auto_ptr<A> A_from_A(new A); in test02()
98 std::auto_ptr<B> B_from_B(new B); in test02()
100 std::auto_ptr<A> A_from_ptr_A(A_from_A); in test02()
101 std::auto_ptr<A> A_from_ptr_B(B_from_B); in test02()
121 std::auto_ptr<A> A_from_ptr_A; in test03()
122 std::auto_ptr<A> A_from_ptr_B; in test03()
123 std::auto_ptr<A> A_from_A(new A); in test03()
[all …]
H A Dauto_ptr_neg.cc33 std::auto_ptr<Derived>
34 foo() { return std::auto_ptr<Derived>(new Derived); } in foo()
39 std::auto_ptr<Base> ptr2; in test01()
/openbsd-src/gnu/llvm/libcxx/include/__memory/
H A Dauto_ptr.h30 class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr
37 _LIBCPP_INLINE_VISIBILITY explicit auto_ptr(_Tp* __p = 0) _NOEXCEPT : __ptr_(__p) {} in __ptr_()
38 _LIBCPP_INLINE_VISIBILITY auto_ptr(auto_ptr& __p) _NOEXCEPT : __ptr_(__p.release()) {} in auto_ptr() function
39 template<class _Up> _LIBCPP_INLINE_VISIBILITY auto_ptr(auto_ptr<_Up>& __p) _NOEXCEPT in auto_ptr() function
41 _LIBCPP_INLINE_VISIBILITY auto_ptr& operator=(auto_ptr& __p) _NOEXCEPT
43 template<class _Up> _LIBCPP_INLINE_VISIBILITY auto_ptr& operator=(auto_ptr<_Up>& __p) _NOEXCEPT
45 _LIBCPP_INLINE_VISIBILITY auto_ptr& operator=(auto_ptr_ref<_Tp> __p) _NOEXCEPT
47 _LIBCPP_INLINE_VISIBILITY ~auto_ptr() _NOEXCEPT {delete __ptr_;} in ~auto_ptr()
66 _LIBCPP_INLINE_VISIBILITY auto_ptr(auto_ptr_ref<_Tp> __p) _NOEXCEPT : __ptr_(__p.__ptr_) {} in auto_ptr() function
69 template<class _Up> _LIBCPP_INLINE_VISIBILITY operator auto_ptr<_Up>() _NOEXCEPT
[all …]
H A Dunique_ptr.h223 unique_ptr(auto_ptr<_Up>&& __p,
252 operator=(auto_ptr<_Up> __p) {
H A Dshared_ptr.h683 shared_ptr(auto_ptr<_Yp>&& __r)
784 shared_ptr<_Tp>& operator=(auto_ptr<_Yp>&& __r)
/openbsd-src/gnu/lib/libstdc++/libstdc++/include/std/
H A Dstd_memory.h167 class auto_ptr
183 auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } in throw()
192 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } in throw()
204 auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } in auto_ptr() function
214 auto_ptr&
215 operator=(auto_ptr& __a) throw() in throw()
232 auto_ptr&
233 operator=(auto_ptr<_Tp1>& __a) throw() in throw()
251 ~auto_ptr() { delete _M_ptr; } in ~auto_ptr()
333 auto_ptr(auto_ptr_ref<element_type> __ref) throw() in throw()
[all …]
/openbsd-src/gnu/gcc/libstdc++-v3/include/std/
H A Dstd_memory.h174 class auto_ptr
190 auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } in throw()
199 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } in throw()
212 auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } in auto_ptr() function
222 auto_ptr&
223 operator=(auto_ptr& __a) throw() in throw()
240 auto_ptr&
241 operator=(auto_ptr<_Tp1>& __a) throw() in throw()
259 ~auto_ptr() { delete _M_ptr; } in ~auto_ptr()
349 auto_ptr(auto_ptr_ref<element_type> __ref) throw() in throw()
[all …]
/openbsd-src/gnu/llvm/libcxx/include/
H A Dmemory381 class auto_ptr // deprecated in C++11, removed in C++17
386 explicit auto_ptr(X* p =0) throw();
387 auto_ptr(auto_ptr&) throw();
388 template<class Y> auto_ptr(auto_ptr<Y>&) throw();
389 auto_ptr& operator=(auto_ptr&) throw();
390 template<class Y> auto_ptr& operator=(auto_ptr<Y>&) throw();
391 auto_ptr& operator=(auto_ptr_ref<X> r) throw();
392 ~auto_ptr() throw();
400 auto_ptr(auto_ptr_ref<X>) throw();
402 template<class Y> operator auto_ptr<Y>() throw();
[all …]
H A DCMakeLists.txt424 __memory/auto_ptr.h
H A Dmodule.modulemap.in1081 module auto_ptr { private header "__memory/auto_ptr.h" }
/openbsd-src/gnu/gcc/libstdc++-v3/include/tr1/
H A Dboost_shared_ptr.h288 __shared_count(std::auto_ptr<_Tp>& __r) in __shared_count()
588 __shared_ptr(std::auto_ptr<_Tp1>& __r) in __shared_ptr()
630 operator=(std::auto_ptr<_Tp1>& __r)
999 shared_ptr(std::auto_ptr<_Tp1>& __r) in shared_ptr()
1024 operator=(std::auto_ptr<_Tp1>& __r)
/openbsd-src/gnu/lib/libstdc++/libstdc++/docs/html/17_intro/
H A DTODO46 - auto_ptr: seems to be some disagreement on what is
H A DCHECKLIST849 X template<class X> class auto_ptr;
936 20.4.5 Template class auto_ptr [lib.auto.ptr]
938 X template<class X> class auto_ptr {
943 T explicit auto_ptr(X* p =0) throw();
944 T auto_ptr(auto_ptr&) throw();
945 T template<class Y> auto_ptr(auto_ptr<Y>&) throw();
946 T auto_ptr& operator=(auto_ptr&) throw();
947 T template<class Y> auto_ptr& operator=(auto_ptr<Y>&) throw();
948 T ~auto_ptr() throw();
957 X auto_ptr(auto_ptr_ref<X>) throw();
[all …]
H A DDESIGN503 defined in this chapter. However, the auto_ptr<> implementation
506 standard would fix it, and auto_ptr<> should be adjusted to match.
/openbsd-src/gnu/llvm/libcxx/docs/
H A DUsingLibcxx.rst279 using `std::auto_ptr` when compiling in C++11 mode will normally trigger a
280 warning saying that `std::auto_ptr` is deprecated. If the macro is defined,
290 This macro is used to re-enable `auto_ptr`.
/openbsd-src/gnu/gcc/libstdc++-v3/docs/html/17_intro/
H A DTODO134 - auto_ptr: seems to be some disagreement on what is
H A DCHECKLIST849 X template<class X> class auto_ptr;
936 20.4.5 Template class auto_ptr [lib.auto.ptr]
938 X template<class X> class auto_ptr {
943 T explicit auto_ptr(X* p =0) throw();
944 T auto_ptr(auto_ptr&) throw();
945 T template<class Y> auto_ptr(auto_ptr<Y>&) throw();
946 T auto_ptr& operator=(auto_ptr&) throw();
947 T template<class Y> auto_ptr& operator=(auto_ptr<Y>&) throw();
948 T ~auto_ptr() throw();
957 X auto_ptr(auto_ptr_ref<X>) throw();
[all …]
H A DDESIGN503 defined in this chapter. However, the auto_ptr<> implementation
506 standard would fix it, and auto_ptr<> should be adjusted to match.
/openbsd-src/gnu/llvm/libcxx/docs/Status/
H A DCxx17Papers.csv5 "`N4190 <https://wg21.link/n4190>`__","LWG","Removing auto_ptr, random_shuffle(), And Old <function…
/openbsd-src/gnu/lib/libstdc++/libstdc++/
H A DChangeLog-2000295 * testsuite/20_util/auto_ptr.cc (test07): Remove test that tries
296 to copy-initialize an auto_ptr<Base> from an auto_ptr<Derived>; it
3296 (auto_ptr): _M_ptr changed to void*.
3298 (auto_ptr::auto_ptr(auto_ptr<Tp1>)): Test implicit convetsion.
3299 (auto_ptr::~auto_ptr): Use this->get() instead of _M_ptr.
3300 (auto_ptr::operator*): Likewise.
3301 (auto_ptr::operator->): Likewise.
3302 (auto_ptr::release): Likewise.
3303 (auto_ptr::reset): Likewise.
3304 (auto_ptr::auto_ptr(auto_ptr_ref)): Initialize from __ref._M_release.
[all …]
/openbsd-src/gnu/llvm/llvm/utils/gn/secondary/libcxx/include/
H A DBUILD.gn499 "__memory/auto_ptr.h",
/openbsd-src/gnu/lib/libcxx/
H A DMakefile513 __memory/auto_ptr.h \
/openbsd-src/gnu/usr.bin/gcc/gcc/doc/
H A Dcontrib.texi377 strings, especially member functions, and for auto_ptr fixes.
/openbsd-src/gnu/llvm/libcxx/
H A DCMakeLists.txt595 -Wno-deprecated-dynamic-exception-spec # For auto_ptr

12