| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.pt/ |
| H A D | auto_ptr.C | 5 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 D | auto_ptr.cc | 66 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 D | auto_ptr_neg.cc | 33 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 D | auto_ptr.h | 30 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 D | unique_ptr.h | 223 unique_ptr(auto_ptr<_Up>&& __p, 252 operator=(auto_ptr<_Up> __p) {
|
| H A D | shared_ptr.h | 683 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 D | std_memory.h | 167 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 D | std_memory.h | 174 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 D | memory | 381 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 D | CMakeLists.txt | 424 __memory/auto_ptr.h
|
| H A D | module.modulemap.in | 1081 module auto_ptr { private header "__memory/auto_ptr.h" }
|
| /openbsd-src/gnu/gcc/libstdc++-v3/include/tr1/ |
| H A D | boost_shared_ptr.h | 288 __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 D | TODO | 46 - auto_ptr: seems to be some disagreement on what is
|
| H A D | CHECKLIST | 849 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 D | DESIGN | 503 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 D | UsingLibcxx.rst | 279 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 D | TODO | 134 - auto_ptr: seems to be some disagreement on what is
|
| H A D | CHECKLIST | 849 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 D | DESIGN | 503 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 D | Cxx17Papers.csv | 5 "`N4190 <https://wg21.link/n4190>`__","LWG","Removing auto_ptr, random_shuffle(), And Old <function…
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/ |
| H A D | ChangeLog-2000 | 295 * 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 D | BUILD.gn | 499 "__memory/auto_ptr.h",
|
| /openbsd-src/gnu/lib/libcxx/ |
| H A D | Makefile | 513 __memory/auto_ptr.h \
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/doc/ |
| H A D | contrib.texi | 377 strings, especially member functions, and for auto_ptr fixes.
|
| /openbsd-src/gnu/llvm/libcxx/ |
| H A D | CMakeLists.txt | 595 -Wno-deprecated-dynamic-exception-spec # For auto_ptr
|