/external/stlport/test/unit/ |
memory_test.cpp | 28 auto_ptr<int> CreateAutoPtr(int val) 29 { return auto_ptr<int>(new int(val)); } 31 bool CheckEquality(auto_ptr<int> pint, int val) 42 auto_ptr<int> pint(new int(1)); 49 auto_ptr<int> pint(CreateAutoPtr(3)); 55 auto_ptr<const int> pint(new int(2)); 59 auto_ptr<volatile int> pint(new int(2)); 63 auto_ptr<const volatile int> pint(new int(2));
|
/ndk/tests/device/test-gnustl-full/unit/ |
memory_test.cpp | 28 auto_ptr<int> CreateAutoPtr(int val) 29 { return auto_ptr<int>(new int(val)); } 31 bool CheckEquality(auto_ptr<int> pint, int val) 42 auto_ptr<int> pint(new int(1)); 49 auto_ptr<int> pint(CreateAutoPtr(3)); 55 auto_ptr<const int> pint(new int(2)); 59 auto_ptr<volatile int> pint(new int(2)); 63 auto_ptr<const volatile int> pint(new int(2));
|
/ndk/tests/device/test-stlport/unit/ |
memory_test.cpp | 28 auto_ptr<int> CreateAutoPtr(int val) 29 { return auto_ptr<int>(new int(val)); } 31 bool CheckEquality(auto_ptr<int> pint, int val) 42 auto_ptr<int> pint(new int(1)); 49 auto_ptr<int> pint(CreateAutoPtr(3)); 55 auto_ptr<const int> pint(new int(2)); 59 auto_ptr<volatile int> pint(new int(2)); 63 auto_ptr<const volatile int> pint(new int(2));
|
/prebuilts/ndk/5/sources/cxx-stl/gnu-libstdc++/include/backward/ |
auto_ptr.h | 0 // auto_ptr implementation -*- C++ -*- 25 /** @file backward/auto_ptr.h 39 * A wrapper class to provide auto_ptr with reference semantics. 40 * For example, an auto_ptr can be assigned (or constructed from) 41 * the result of a function which returns an auto_ptr by value. 60 * An @c auto_ptr owns the object it holds a pointer to. Copying 61 * an @c auto_ptr copies the pointer and transfers ownership to the 62 * destination. If more than one @c auto_ptr owns the same object 65 * The uses of @c auto_ptr include providing temporary 69 * auto_ptr does not meet the CopyConstructible and Assignabl 85 class auto_ptr class 101 auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } function in class:auto_ptr 110 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } function in class:auto_ptr 123 auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } function in class:auto_ptr 258 auto_ptr(auto_ptr_ref<element_type> __ref) throw() function in class:auto_ptr 284 class auto_ptr<void> class [all...] |
/prebuilts/ndk/6/sources/cxx-stl/gnu-libstdc++/include/backward/ |
auto_ptr.h | 0 // auto_ptr implementation -*- C++ -*- 25 /** @file backward/auto_ptr.h 39 * A wrapper class to provide auto_ptr with reference semantics. 40 * For example, an auto_ptr can be assigned (or constructed from) 41 * the result of a function which returns an auto_ptr by value. 60 * An @c auto_ptr owns the object it holds a pointer to. Copying 61 * an @c auto_ptr copies the pointer and transfers ownership to the 62 * destination. If more than one @c auto_ptr owns the same object 65 * The uses of @c auto_ptr include providing temporary 69 * auto_ptr does not meet the CopyConstructible and Assignabl 85 class auto_ptr class 101 auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } function in class:auto_ptr 110 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } function in class:auto_ptr 123 auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } function in class:auto_ptr 258 auto_ptr(auto_ptr_ref<element_type> __ref) throw() function in class:auto_ptr 284 class auto_ptr<void> class [all...] |
/prebuilts/ndk/7/sources/cxx-stl/gnu-libstdc++/include/backward/ |
auto_ptr.h | 0 // auto_ptr implementation -*- C++ -*- 25 /** @file backward/auto_ptr.h 39 * A wrapper class to provide auto_ptr with reference semantics. 40 * For example, an auto_ptr can be assigned (or constructed from) 41 * the result of a function which returns an auto_ptr by value. 60 * An @c auto_ptr owns the object it holds a pointer to. Copying 61 * an @c auto_ptr copies the pointer and transfers ownership to the 62 * destination. If more than one @c auto_ptr owns the same object 65 * The uses of @c auto_ptr include providing temporary 69 * auto_ptr does not meet the CopyConstructible and Assignabl 85 class auto_ptr class 101 auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } function in class:auto_ptr 110 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } function in class:auto_ptr 123 auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } function in class:auto_ptr 258 auto_ptr(auto_ptr_ref<element_type> __ref) throw() function in class:auto_ptr 284 class auto_ptr<void> class [all...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.4.3/include/backward/ |
auto_ptr.h | 0 // auto_ptr implementation -*- C++ -*- 25 /** @file backward/auto_ptr.h 39 * A wrapper class to provide auto_ptr with reference semantics. 40 * For example, an auto_ptr can be assigned (or constructed from) 41 * the result of a function which returns an auto_ptr by value. 60 * An @c auto_ptr owns the object it holds a pointer to. Copying 61 * an @c auto_ptr copies the pointer and transfers ownership to the 62 * destination. If more than one @c auto_ptr owns the same object 65 * The uses of @c auto_ptr include providing temporary 69 * auto_ptr does not meet the CopyConstructible and Assignabl 85 class auto_ptr class 101 auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } function in class:auto_ptr 110 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } function in class:auto_ptr 123 auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } function in class:auto_ptr 258 auto_ptr(auto_ptr_ref<element_type> __ref) throw() function in class:auto_ptr 284 class auto_ptr<void> class [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/backward/ |
auto_ptr.h | 0 // 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 does not meet the CopyConstructible and Assignabl 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...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/backward/ |
auto_ptr.h | 0 // 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 does not meet the CopyConstructible and Assignabl 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...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.8/include/backward/ |
auto_ptr.h | 0 // 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 does not meet the CopyConstructible and Assignabl 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...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.9/include/backward/ |
auto_ptr.h | 0 // 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 does not meet the CopyConstructible and Assignabl 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...] |
/external/clang/test/Analysis/diagnostics/Inputs/include/ |
report-issues-within-main-file.h | 2 class auto_ptr { class 6 auto_ptr(_Tp* __p = 0) throw() : _M_ptr(__p) { } function in class:auto_ptr 7 ~auto_ptr() { delete _M_ptr; }
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/include/c++/4.6/backward/ |
auto_ptr.h | 0 // 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 does not meet the CopyConstructible and Assignabl 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...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.6/include/backward/ |
auto_ptr.h | 0 // 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 does not meet the CopyConstructible and Assignabl 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...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.7/include/backward/ |
auto_ptr.h | 0 // 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 does not meet the CopyConstructible and Assignabl 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...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.6/include/backward/ |
auto_ptr.h | 0 // 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 does not meet the CopyConstructible and Assignabl 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...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.7/include/backward/ |
auto_ptr.h | 0 // 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 does not meet the CopyConstructible and Assignabl 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...] |
/external/llvm/test/Transforms/MemCpyOpt/ |
loadstore-sret.ll | 7 %"class.std::auto_ptr" = type { i32* } 10 define void @_Z3foov(%"class.std::auto_ptr"* noalias nocapture sret %agg.result) ssp { 12 %temp.lvalue = alloca %"class.std::auto_ptr", align 8 13 ; CHECK: call void @_Z3barv(%"class.std::auto_ptr"* sret %agg.result) 14 call void @_Z3barv(%"class.std::auto_ptr"* sret %temp.lvalue) 15 %tmp.i.i = getelementptr inbounds %"class.std::auto_ptr"* %temp.lvalue, i64 0, i32 0 18 %tmp.i.i4 = getelementptr inbounds %"class.std::auto_ptr"* %agg.result, i64 0, i32 0 25 declare void @_Z3barv(%"class.std::auto_ptr"* sret)
|
/external/llvm/test/Transforms/DeadStoreElimination/ |
2011-09-06-EndOfFunction.ll | 6 %"class.std::auto_ptr" = type { i32* } 9 define void @_Z3foov(%"class.std::auto_ptr"* noalias nocapture sret %agg.result) uwtable ssp { 11 %temp.lvalue = alloca %"class.std::auto_ptr", align 8 12 call void @_Z3barv(%"class.std::auto_ptr"* sret %temp.lvalue) 13 %_M_ptr.i.i = getelementptr inbounds %"class.std::auto_ptr"* %temp.lvalue, i64 0, i32 0 17 %_M_ptr.i.i4 = getelementptr inbounds %"class.std::auto_ptr"* %agg.result, i64 0, i32 0 23 declare void @_Z3barv(%"class.std::auto_ptr"* sret)
|
/external/libcxx/test/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/ |
copy.pass.cpp | 12 // template <class X> class auto_ptr; 14 // auto_ptr(auto_ptr& a) throw(); 26 std::auto_ptr<A> ap1(p); 27 std::auto_ptr<A> ap2(ap1);
|
/external/libcxx/test/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/ |
convert_to_auto_ptr.pass.cpp | 12 // template <class X> class auto_ptr; 14 // template<class Y> operator auto_ptr<Y>() throw(); 21 std::auto_ptr<B> 24 return std::auto_ptr<B>(new B(1)); 30 std::auto_ptr<A> ap2(source());
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/ |
copy.pass.cpp | 12 // template <class X> class auto_ptr; 14 // auto_ptr(auto_ptr& a) throw(); 26 std::auto_ptr<A> ap1(p); 27 std::auto_ptr<A> ap2(ap1);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/ |
convert_to_auto_ptr.pass.cpp | 12 // template <class X> class auto_ptr; 14 // template<class Y> operator auto_ptr<Y>() throw(); 21 std::auto_ptr<B> 24 return std::auto_ptr<B>(new B(1)); 30 std::auto_ptr<A> ap2(source());
|
/external/stlport/stlport/stl/ |
_auto_ptr.h | 48 class auto_ptr : public __ptr_base { class in inherits:__ptr_base 51 typedef auto_ptr<_Tp> _Self; 84 explicit auto_ptr(_Tp* __px = 0) _STLP_NOTHROW { this->__set(__px); } 88 template<class _Tp1> auto_ptr(auto_ptr<_Tp1>& __r) _STLP_NOTHROW { 93 template<class _Tp1> auto_ptr<_Tp>& operator=(auto_ptr<_Tp1>& __r) _STLP_NOTHROW { 100 auto_ptr(_Self& __r) _STLP_NOTHROW { this->__set(__r.release()); } 107 ~auto_ptr() _STLP_NOTHROW { /* boris : reset(0) might be better */ delete this->get(); } 109 auto_ptr(auto_ptr_ref<_Tp> __r) _STLP_NOTHRO [all...] |
/ndk/sources/cxx-stl/stlport/stlport/stl/ |
_auto_ptr.h | 48 class auto_ptr : public __ptr_base { class in inherits:__ptr_base 51 typedef auto_ptr<_Tp> _Self; 84 explicit auto_ptr(_Tp* __px = 0) _STLP_NOTHROW { this->__set(__px); } 88 template<class _Tp1> auto_ptr(auto_ptr<_Tp1>& __r) _STLP_NOTHROW { 93 template<class _Tp1> auto_ptr<_Tp>& operator=(auto_ptr<_Tp1>& __r) _STLP_NOTHROW { 100 auto_ptr(_Self& __r) _STLP_NOTHROW { this->__set(__r.release()); } 107 ~auto_ptr() _STLP_NOTHROW { /* boris : reset(0) might be better */ delete this->get(); } 109 auto_ptr(auto_ptr_ref<_Tp> __r) _STLP_NOTHRO [all...] |