/external/protobuf/src/google/protobuf/stubs/ |
D | shared_ptr.h | 61 using std::shared_ptr; 76 template <typename T> class shared_ptr; 94 template <typename T> friend class shared_ptr; 106 class shared_ptr { 111 shared_ptr() : ptr_(NULL), control_block_(NULL) {} 113 explicit shared_ptr(T* ptr) 124 shared_ptr(const shared_ptr<U>& ptr) 130 shared_ptr(const shared_ptr<T>& ptr) 139 shared_ptr<T>& operator=(const shared_ptr<U>& ptr) { 141 shared_ptr<T> me(ptr); // will hold our previous state to be destroyed. [all …]
|
/external/clang/test/Analysis/ |
D | NewDelete-checker-test.cpp | 272 class shared_ptr { class 277 shared_ptr() : p(0), control(0) {} in shared_ptr() function in reference_count::shared_ptr 278 explicit shared_ptr(T *p) : p(p), control(new control_block) { in shared_ptr() function in reference_count::shared_ptr 281 shared_ptr(shared_ptr &other) : p(other.p), control(other.control) { in shared_ptr() function in reference_count::shared_ptr 285 ~shared_ptr() { in ~shared_ptr() 296 void swap(shared_ptr &other) { in swap() 308 shared_ptr<int> a(new int); in testSingle() 313 shared_ptr<int> a(new int); in testDouble() 314 shared_ptr<int> b = a; in testDouble() 319 shared_ptr<int> a(new int); in testInvalidated() [all …]
|
/external/libbrillo/brillo/http/ |
D | http_utils.h | 63 std::shared_ptr<Transport> transport, 72 std::shared_ptr<Transport> transport, 86 std::shared_ptr<Transport> transport, 102 std::shared_ptr<Transport> transport, 113 std::shared_ptr<Transport> transport, 123 std::shared_ptr<Transport> transport, 132 std::shared_ptr<Transport> transport, 141 std::shared_ptr<Transport> transport, 149 std::shared_ptr<Transport> transport, 162 std::shared_ptr<Transport> transport, [all …]
|
D | http_utils.cc | 26 std::shared_ptr<Transport> transport, in GetAndBlock() 34 std::shared_ptr<Transport> transport, in Get() 46 std::shared_ptr<Transport> transport, in HeadAndBlock() 53 std::shared_ptr<Transport> transport, in Head() 68 std::shared_ptr<Transport> transport, in PostTextAndBlock() 78 std::shared_ptr<Transport> transport, in PostText() 98 std::shared_ptr<Transport> transport, in SendRequestAndBlock() 116 std::shared_ptr<Transport> transport, in SendRequestWithNoDataAndBlock() 127 std::shared_ptr<Transport> transport, in SendRequest() 153 std::shared_ptr<Transport> transport, in SendRequest() [all …]
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/ |
D | enable_shared_from_this.pass.cpp | 55 std::shared_ptr<T const> t1(new T); in main() 56 std::shared_ptr<T const> t2(std::make_shared<T>()); in main() 60 std::shared_ptr<Bar> t1(new Bar(42)); in main() 62 std::shared_ptr<Bar> t2(std::make_shared<Bar>(x)); in main() 66 std::shared_ptr<Y> p(new Z); in main() 67 std::shared_ptr<T> q = p->shared_from_this(); in main() 72 std::shared_ptr<Y> p = std::make_shared<Z>(); in main() 73 std::shared_ptr<T> q = p->shared_from_this(); in main() 85 std::shared_ptr<T> s(ptr); in main() 89 std::shared_ptr<T> s2(ptr, &nullDeleter); in main() [all …]
|
/external/libcxx/include/ |
D | memory | 388 class shared_ptr 395 constexpr shared_ptr() noexcept; 396 template<class Y> explicit shared_ptr(Y* p); 397 template<class Y, class D> shared_ptr(Y* p, D d); 398 template<class Y, class D, class A> shared_ptr(Y* p, D d, A a); 399 template <class D> shared_ptr(nullptr_t p, D d); 400 template <class D, class A> shared_ptr(nullptr_t p, D d, A a); 401 template<class Y> shared_ptr(const shared_ptr<Y>& r, T *p) noexcept; 402 shared_ptr(const shared_ptr& r) noexcept; 403 template<class Y> shared_ptr(const shared_ptr<Y>& r) noexcept; [all …]
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/ |
D | shared_ptr_Y.pass.cpp | 56 static_assert(( std::is_convertible<std::shared_ptr<A>, std::shared_ptr<B> >::value), ""); in main() 57 static_assert((!std::is_convertible<std::shared_ptr<B>, std::shared_ptr<A> >::value), ""); in main() 58 static_assert((!std::is_convertible<std::shared_ptr<A>, std::shared_ptr<C> >::value), ""); in main() 60 const std::shared_ptr<A> pA(new A); in main() 65 std::shared_ptr<B> pB(pA); in main() 79 std::shared_ptr<A> pA; in main() 84 std::shared_ptr<B> pB(pA); in main()
|
D | shared_ptr_Y_rv.pass.cpp | 60 static_assert(( std::is_convertible<std::shared_ptr<A>, std::shared_ptr<B> >::value), ""); in main() 61 static_assert((!std::is_convertible<std::shared_ptr<B>, std::shared_ptr<A> >::value), ""); in main() 62 static_assert((!std::is_convertible<std::shared_ptr<A>, std::shared_ptr<C> >::value), ""); in main() 64 std::shared_ptr<A> pA(new A); in main() 70 std::shared_ptr<B> pB(std::move(pA)); in main() 95 std::shared_ptr<A> pA; in main() 100 std::shared_ptr<B> pB(pA); in main()
|
D | weak_ptr.pass.cpp | 51 std::shared_ptr<A> sp(wp); in main() 61 std::shared_ptr<A> sp0(new A); in main() 63 std::shared_ptr<A> sp(wp); in main() 71 std::shared_ptr<A> sp0(new A); in main() 76 std::shared_ptr<A> sp(wp); in main()
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/ |
D | owner_less.pass.cpp | 58 const std::shared_ptr<int> p1(new int); in main() 59 const std::shared_ptr<int> p2 = p1; in main() 60 const std::shared_ptr<int> p3(new int); in main() 66 typedef std::owner_less<std::shared_ptr<int> > CS; in main() 69 static_assert((std::is_same<std::shared_ptr<int>, CS::first_argument_type>::value), "" ); in main() 70 static_assert((std::is_same<std::shared_ptr<int>, CS::second_argument_type>::value), "" ); in main() 103 std::shared_ptr<int> sp1; in main() 104 std::shared_ptr<void> sp2; in main() 105 std::shared_ptr<long> sp3; in main() 117 std::set<std::shared_ptr<X>, std::owner_less<>> s; in main() [all …]
|
/external/clang/test/Analysis/Inputs/ |
D | system-header-simulator-cxx-std-suppression.h | 119 class shared_ptr 122 constexpr shared_ptr(nullptr_t); 123 explicit shared_ptr(_Tp* __p); 125 shared_ptr(shared_ptr&& __r) { } in shared_ptr() function 127 ~shared_ptr(); 129 shared_ptr& operator=(shared_ptr&& __r) { 141 shared_ptr<_Tp>::shared_ptr(nullptr_t) { in shared_ptr() function
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/ |
D | make_shared.volatile.pass.cpp | 24 std::shared_ptr<T> p0 = std::make_shared<T>(t0); in test() 25 std::shared_ptr<T> p1 = std::make_shared<T>(t1); in test() 32 std::shared_ptr<const T> p0 = std::make_shared<const T>(t0); in test() 33 std::shared_ptr<const T> p1 = std::make_shared<const T>(t1); in test() 40 std::shared_ptr<volatile T> p0 = std::make_shared<volatile T>(t0); in test() 41 std::shared_ptr<volatile T> p1 = std::make_shared<volatile T>(t1); in test() 48 std::shared_ptr<const volatile T> p0 = std::make_shared<const volatile T>(t0); in test() 49 std::shared_ptr<const volatile T> p1 = std::make_shared<const volatile T>(t1); in test()
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.cast/ |
D | static_pointer_cast.pass.cpp | 46 const std::shared_ptr<A> pA(new A); in main() 47 std::shared_ptr<B> pB = std::static_pointer_cast<B>(pA); in main() 52 const std::shared_ptr<B> pA(new A); in main() 53 std::shared_ptr<A> pB = std::static_pointer_cast<A>(pA); in main() 58 const std::shared_ptr<A> pA; in main() 59 std::shared_ptr<B> pB = std::static_pointer_cast<B>(pA); in main() 64 const std::shared_ptr<B> pA; in main() 65 std::shared_ptr<A> pB = std::static_pointer_cast<A>(pA); in main()
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared.atomic/ |
D | atomic_compare_exchange_strong.pass.cpp | 36 std::shared_ptr<int> p(new int(4)); in main() 37 std::shared_ptr<int> v(new int(3)); in main() 38 std::shared_ptr<int> w(new int(2)); in main() 46 std::shared_ptr<int> p(new int(4)); in main() 47 std::shared_ptr<int> v = p; in main() 48 std::shared_ptr<int> w(new int(2)); in main()
|
D | atomic_compare_exchange_weak.pass.cpp | 36 std::shared_ptr<int> p(new int(4)); in main() 37 std::shared_ptr<int> v(new int(3)); in main() 38 std::shared_ptr<int> w(new int(2)); in main() 46 std::shared_ptr<int> p(new int(4)); in main() 47 std::shared_ptr<int> v = p; in main() 48 std::shared_ptr<int> w(new int(2)); in main()
|
D | atomic_compare_exchange_weak_explicit.pass.cpp | 37 std::shared_ptr<int> p(new int(4)); in main() 38 std::shared_ptr<int> v(new int(3)); in main() 39 std::shared_ptr<int> w(new int(2)); in main() 49 std::shared_ptr<int> p(new int(4)); in main() 50 std::shared_ptr<int> v = p; in main() 51 std::shared_ptr<int> w(new int(2)); in main()
|
D | atomic_compare_exchange_strong_explicit.pass.cpp | 37 std::shared_ptr<int> p(new int(4)); in main() 38 std::shared_ptr<int> v(new int(3)); in main() 39 std::shared_ptr<int> w(new int(2)); in main() 49 std::shared_ptr<int> p(new int(4)); in main() 50 std::shared_ptr<int> v = p; in main() 51 std::shared_ptr<int> w(new int(2)); in main()
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.spec/ |
D | swap.pass.cpp | 35 std::shared_ptr<A> p1(ptr1); in main() 37 std::shared_ptr<A> p2(ptr2); in main() 53 std::shared_ptr<A> p1(ptr1); in main() 55 std::shared_ptr<A> p2; in main() 71 std::shared_ptr<A> p1; in main() 73 std::shared_ptr<A> p2(ptr2); in main() 89 std::shared_ptr<A> p1; in main() 91 std::shared_ptr<A> p2; in main()
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.mod/ |
D | swap.pass.cpp | 35 std::shared_ptr<A> p1(ptr1); in main() 37 std::shared_ptr<A> p2(ptr2); in main() 53 std::shared_ptr<A> p1(ptr1); in main() 55 std::shared_ptr<A> p2; in main() 71 std::shared_ptr<A> p1; in main() 73 std::shared_ptr<A> p2(ptr2); in main() 89 std::shared_ptr<A> p1; in main() 91 std::shared_ptr<A> p2; in main()
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.assign/ |
D | shared_ptr_Y.pass.cpp | 46 const std::shared_ptr<A> pA(new A); in main() 49 std::shared_ptr<B> pB(new B); in main() 65 const std::shared_ptr<A> pA; in main() 68 std::shared_ptr<B> pB(new B); in main() 84 const std::shared_ptr<A> pA(new A); in main() 87 std::shared_ptr<B> pB; in main() 103 const std::shared_ptr<A> pA; in main() 106 std::shared_ptr<B> pB; in main()
|
D | shared_ptr_rv.pass.cpp | 48 std::shared_ptr<A> pA(new A); in main() 51 std::shared_ptr<A> pB(new A); in main() 67 std::shared_ptr<A> pA; in main() 70 std::shared_ptr<A> pB(new A); in main() 86 std::shared_ptr<A> pA(new A); in main() 89 std::shared_ptr<A> pB; in main() 105 std::shared_ptr<A> pA; in main() 108 std::shared_ptr<A> pB; in main()
|
D | shared_ptr_Y_rv.pass.cpp | 48 std::shared_ptr<A> pA(new A); in main() 51 std::shared_ptr<B> pB(new B); in main() 67 std::shared_ptr<A> pA; in main() 70 std::shared_ptr<B> pB(new B); in main() 86 std::shared_ptr<A> pA(new A); in main() 89 std::shared_ptr<B> pB; in main() 105 std::shared_ptr<A> pA; in main() 108 std::shared_ptr<B> pB; in main()
|
D | shared_ptr.pass.cpp | 46 const std::shared_ptr<A> pA(new A); in main() 49 std::shared_ptr<A> pB(new A); in main() 65 const std::shared_ptr<A> pA; in main() 68 std::shared_ptr<A> pB(new A); in main() 84 const std::shared_ptr<A> pA(new A); in main() 87 std::shared_ptr<A> pB; in main() 103 const std::shared_ptr<A> pA; in main() 106 std::shared_ptr<A> pB; in main()
|
/external/clang/test/PCH/ |
D | cxx-variadic-templates.h | 3 class shared_ptr{ 7 shared_ptr<_Tp> 13 shared_ptr<_Tp> 14 shared_ptr<_Tp>::allocate_shared(const _Alloc& __a, _Args&& ...__args) in allocate_shared() 16 shared_ptr<_Tp> __r; in allocate_shared()
|
/external/clang/include/clang/Tooling/ |
D | Tooling.h | 73 std::shared_ptr<PCHContainerOperations> PCHContainerOps, 89 std::shared_ptr<PCHContainerOperations> PCHContainerOps, 152 std::shared_ptr<PCHContainerOperations> PCHContainerOps = 176 std::shared_ptr<PCHContainerOperations> PCHContainerOps = 190 std::shared_ptr<PCHContainerOperations> PCHContainerOps = 207 std::shared_ptr<PCHContainerOperations> PCHContainerOps = 226 std::shared_ptr<PCHContainerOperations> PCHContainerOps = 238 std::shared_ptr<PCHContainerOperations> PCHContainerOps); 265 std::shared_ptr<PCHContainerOperations> PCHContainerOps); 271 std::shared_ptr<PCHContainerOperations> PCHContainerOps; [all …]
|