/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.getdeleter/ |
get_deleter.pass.cpp | 18 #include "../test_deleter.h" 36 std::shared_ptr<A> p(ptr, test_deleter<A>(3)); 37 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p); 38 assert(test_deleter<A>::count == 1); 39 assert(test_deleter<A>::dealloc_count == 0); 44 assert(test_deleter<A>::count == 0); 45 assert(test_deleter<A>::dealloc_count == 1); 47 test_deleter<A>::dealloc_count = 0; 50 std::shared_ptr<A> p(nullptr, test_deleter<A>(3)) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.getdeleter/ |
get_deleter.pass.cpp | 18 #include "../test_deleter.h" 36 std::shared_ptr<A> p(ptr, test_deleter<A>(3)); 37 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p); 38 assert(test_deleter<A>::count == 1); 39 assert(test_deleter<A>::dealloc_count == 0); 44 assert(test_deleter<A>::count == 0); 45 assert(test_deleter<A>::dealloc_count == 1); 47 test_deleter<A>::dealloc_count = 0; 50 std::shared_ptr<A> p(nullptr, test_deleter<A>(3)) [all...] |
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/ |
test_deleter.h | 32 class test_deleter class in inherits:test_deleter_base 39 test_deleter() : state_(0) {++count;} function in class:test_deleter 40 explicit test_deleter(int s) : state_(s) {++count;} function in class:test_deleter 41 test_deleter(const test_deleter& d) function in class:test_deleter 43 ~test_deleter() {assert(state_ >= 0); --count; state_ = -1;} 53 swap(test_deleter<T>& x, test_deleter<T>& y) 55 test_deleter<T> t(std::move(x));
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/ |
test_deleter.h | 32 class test_deleter class in inherits:test_deleter_base 39 test_deleter() : state_(0) {++count;} function in class:test_deleter 40 explicit test_deleter(int s) : state_(s) {++count;} function in class:test_deleter 41 test_deleter(const test_deleter& d) function in class:test_deleter 43 ~test_deleter() {assert(state_ >= 0); --count; state_ = -1;} 53 swap(test_deleter<T>& x, test_deleter<T>& y) 55 test_deleter<T> t(std::move(x));
|
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/ |
nullptr_t_deleter.pass.cpp | 18 #include "../test_deleter.h" 34 std::shared_ptr<A> p(nullptr, test_deleter<A>(3)); 38 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p); 39 assert(test_deleter<A>::count == 1); 40 assert(test_deleter<A>::dealloc_count == 0); 45 assert(test_deleter<A>::count == 0); 46 assert(test_deleter<A>::dealloc_count == 1);
|
pointer_deleter.pass.cpp | 18 #include "../test_deleter.h" 35 std::shared_ptr<A> p(ptr, test_deleter<A>(3)); 39 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p); 40 assert(test_deleter<A>::count == 1); 41 assert(test_deleter<A>::dealloc_count == 0); 46 assert(test_deleter<A>::count == 0); 47 assert(test_deleter<A>::dealloc_count == 1);
|
nullptr_t_deleter_allocator.pass.cpp | 16 #include "../test_deleter.h" 33 std::shared_ptr<A> p(nullptr, test_deleter<A>(3), test_allocator<A>(5)); 37 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p); 38 assert(test_deleter<A>::count == 1); 39 assert(test_deleter<A>::dealloc_count == 0); 46 assert(test_deleter<A>::count == 0); 47 assert(test_deleter<A>::dealloc_count == 1);
|
pointer_deleter_allocator.pass.cpp | 16 #include "../test_deleter.h" 34 std::shared_ptr<A> p(ptr, test_deleter<A>(3), test_allocator<A>(5)); 38 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p); 39 assert(test_deleter<A>::count == 1); 40 assert(test_deleter<A>::dealloc_count == 0); 47 assert(test_deleter<A>::count == 0); 48 assert(test_deleter<A>::dealloc_count == 1);
|
nullptr_t_deleter_allocator_throw.pass.cpp | 16 #include "../test_deleter.h" 35 std::shared_ptr<A> p(nullptr, test_deleter<A>(3), test_allocator<A>(5)); 41 assert(test_deleter<A>::count == 0); 42 assert(test_deleter<A>::dealloc_count == 1);
|
nullptr_t_deleter_throw.pass.cpp | 20 #include "../test_deleter.h" 52 std::shared_ptr<A> p(nullptr, test_deleter<A>(3)); 58 assert(test_deleter<A>::count == 0); 59 assert(test_deleter<A>::dealloc_count == 1);
|
pointer_deleter_allocator_throw.pass.cpp | 16 #include "../test_deleter.h" 36 std::shared_ptr<A> p(ptr, test_deleter<A>(3), test_allocator<A>(5)); 42 assert(test_deleter<A>::count == 0); 43 assert(test_deleter<A>::dealloc_count == 1);
|
pointer_deleter_throw.pass.cpp | 20 #include "../test_deleter.h" 53 std::shared_ptr<A> p(ptr, test_deleter<A>(3)); 59 assert(test_deleter<A>::count == 0); 60 assert(test_deleter<A>::dealloc_count == 1);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/ |
nullptr_t_deleter.pass.cpp | 18 #include "../test_deleter.h" 34 std::shared_ptr<A> p(nullptr, test_deleter<A>(3)); 38 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p); 39 assert(test_deleter<A>::count == 1); 40 assert(test_deleter<A>::dealloc_count == 0); 45 assert(test_deleter<A>::count == 0); 46 assert(test_deleter<A>::dealloc_count == 1);
|
pointer_deleter.pass.cpp | 18 #include "../test_deleter.h" 35 std::shared_ptr<A> p(ptr, test_deleter<A>(3)); 39 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p); 40 assert(test_deleter<A>::count == 1); 41 assert(test_deleter<A>::dealloc_count == 0); 46 assert(test_deleter<A>::count == 0); 47 assert(test_deleter<A>::dealloc_count == 1);
|
nullptr_t_deleter_allocator.pass.cpp | 16 #include "../test_deleter.h" 33 std::shared_ptr<A> p(nullptr, test_deleter<A>(3), test_allocator<A>(5)); 37 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p); 38 assert(test_deleter<A>::count == 1); 39 assert(test_deleter<A>::dealloc_count == 0); 46 assert(test_deleter<A>::count == 0); 47 assert(test_deleter<A>::dealloc_count == 1);
|
pointer_deleter_allocator.pass.cpp | 16 #include "../test_deleter.h" 34 std::shared_ptr<A> p(ptr, test_deleter<A>(3), test_allocator<A>(5)); 38 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p); 39 assert(test_deleter<A>::count == 1); 40 assert(test_deleter<A>::dealloc_count == 0); 47 assert(test_deleter<A>::count == 0); 48 assert(test_deleter<A>::dealloc_count == 1);
|
nullptr_t_deleter_allocator_throw.pass.cpp | 16 #include "../test_deleter.h" 35 std::shared_ptr<A> p(nullptr, test_deleter<A>(3), test_allocator<A>(5)); 41 assert(test_deleter<A>::count == 0); 42 assert(test_deleter<A>::dealloc_count == 1);
|
nullptr_t_deleter_throw.pass.cpp | 20 #include "../test_deleter.h" 52 std::shared_ptr<A> p(nullptr, test_deleter<A>(3)); 58 assert(test_deleter<A>::count == 0); 59 assert(test_deleter<A>::dealloc_count == 1);
|
pointer_deleter_allocator_throw.pass.cpp | 16 #include "../test_deleter.h" 36 std::shared_ptr<A> p(ptr, test_deleter<A>(3), test_allocator<A>(5)); 42 assert(test_deleter<A>::count == 0); 43 assert(test_deleter<A>::dealloc_count == 1);
|
pointer_deleter_throw.pass.cpp | 20 #include "../test_deleter.h" 53 std::shared_ptr<A> p(ptr, test_deleter<A>(3)); 59 assert(test_deleter<A>::count == 0); 60 assert(test_deleter<A>::dealloc_count == 1);
|
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.mod/ |
reset_pointer_deleter.pass.cpp | 18 #include "../test_deleter.h" 48 p.reset(ptr, test_deleter<A>(3)); 53 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p); 54 assert(test_deleter<A>::count == 1); 55 assert(test_deleter<A>::dealloc_count == 0); 60 assert(test_deleter<A>::count == 0); 61 assert(test_deleter<A>::dealloc_count == 1); 65 p.reset(ptr, test_deleter<A>(3)); 70 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p) [all...] |
reset_pointer_deleter_allocator.pass.cpp | 18 #include "../test_deleter.h" 49 p.reset(ptr, test_deleter<A>(3), test_allocator<A>(4)); 54 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p); 55 assert(test_deleter<A>::count == 1); 56 assert(test_deleter<A>::dealloc_count == 0); 63 assert(test_deleter<A>::count == 0); 64 assert(test_deleter<A>::dealloc_count == 1); 70 p.reset(ptr, test_deleter<A>(3), test_allocator<A>(4)); 75 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.mod/ |
reset_pointer_deleter.pass.cpp | 18 #include "../test_deleter.h" 48 p.reset(ptr, test_deleter<A>(3)); 53 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p); 54 assert(test_deleter<A>::count == 1); 55 assert(test_deleter<A>::dealloc_count == 0); 60 assert(test_deleter<A>::count == 0); 61 assert(test_deleter<A>::dealloc_count == 1); 65 p.reset(ptr, test_deleter<A>(3)); 70 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p) [all...] |
reset_pointer_deleter_allocator.pass.cpp | 18 #include "../test_deleter.h" 49 p.reset(ptr, test_deleter<A>(3), test_allocator<A>(4)); 54 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p); 55 assert(test_deleter<A>::count == 1); 56 assert(test_deleter<A>::dealloc_count == 0); 63 assert(test_deleter<A>::count == 0); 64 assert(test_deleter<A>::dealloc_count == 1); 70 p.reset(ptr, test_deleter<A>(3), test_allocator<A>(4)); 75 test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p) [all...] |