/ndk/sources/cxx-stl/llvm-libc++/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/ |
shared_ptr.pass.cpp | 33 std::shared_ptr<A> pA(new A); 34 assert(pA.use_count() == 1); 37 std::shared_ptr<A> pA2(pA); 39 assert(pA.use_count() == 2); 41 assert(pA2.get() == pA.get()); 43 assert(pA.use_count() == 1); 48 std::shared_ptr<A> pA; 49 assert(pA.use_count() == 0); 52 std::shared_ptr<A> pA2(pA); 54 assert(pA.use_count() == 0) [all...] |
shared_ptr_rv.pass.cpp | 33 std::shared_ptr<A> pA(new A); 34 assert(pA.use_count() == 1); 37 A* p = pA.get(); 38 std::shared_ptr<A> pA2(std::move(pA)); 41 assert(pA.use_count() == 0); 44 assert(pA.use_count() == 2); 50 assert(pA.use_count() == 0); 53 assert(pA.use_count() == 1); 59 std::shared_ptr<A> pA; 60 assert(pA.use_count() == 0) [all...] |
shared_ptr_Y.pass.cpp | 60 const std::shared_ptr<A> pA(new A); 61 assert(pA.use_count() == 1); 65 std::shared_ptr<B> pB(pA); 69 assert(pA.use_count() == 2); 70 assert(pA.get() == pB.get()); 72 assert(pA.use_count() == 1); 79 std::shared_ptr<A> pA; 80 assert(pA.use_count() == 0); 84 std::shared_ptr<B> pB(pA); 88 assert(pA.use_count() == 0) [all...] |
shared_ptr_Y_rv.pass.cpp | 60 std::shared_ptr<A> pA(new A); 61 assert(pA.use_count() == 1); 65 B* p = pA.get(); 66 std::shared_ptr<B> pB(std::move(pA)); 71 assert(pA.use_count() == 0); 74 assert(pA.use_count() == 2); 79 assert(pA.use_count() == 0); 83 assert(pA.use_count() == 1); 91 std::shared_ptr<A> pA; 92 assert(pA.use_count() == 0) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.cast/ |
const_pointer_cast.pass.cpp | 46 const std::shared_ptr<const A> pA(new A); 47 std::shared_ptr<A> pB = std::const_pointer_cast<A>(pA); 48 assert(pB.get() == pA.get()); 49 assert(!pB.owner_before(pA) && !pA.owner_before(pB)); 52 const std::shared_ptr<const A> pA; 53 std::shared_ptr<A> pB = std::const_pointer_cast<A>(pA); 54 assert(pB.get() == pA.get()); 55 assert(!pB.owner_before(pA) && !pA.owner_before(pB)) [all...] |
dynamic_pointer_cast.pass.cpp | 47 std::shared_ptr<A> pA = std::dynamic_pointer_cast<A>(pB); 48 assert(pA.get() == pB.get()); 49 assert(!pB.owner_before(pA) && !pA.owner_before(pB)); 53 std::shared_ptr<A> pA = std::dynamic_pointer_cast<A>(pB); 54 assert(pA.get() == 0); 55 assert(pA.use_count() == 0);
|
static_pointer_cast.pass.cpp | 46 const std::shared_ptr<A> pA(new A); 47 std::shared_ptr<B> pB = std::static_pointer_cast<B>(pA); 48 assert(pB.get() == pA.get()); 49 assert(!pB.owner_before(pA) && !pA.owner_before(pB)); 52 const std::shared_ptr<B> pA(new A); 53 std::shared_ptr<A> pB = std::static_pointer_cast<A>(pA); 54 assert(pB.get() == pA.get()); 55 assert(!pB.owner_before(pA) && !pA.owner_before(pB)) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.assign/ |
auto_ptr_Y.pass.cpp | 46 std::auto_ptr<A> pA(new A); 47 A* ptrA = pA.get(); 50 pB = std::move(pA); 54 assert(pA.get() == 0); 63 std::auto_ptr<A> pA; 64 A* ptrA = pA.get(); 67 pB = std::move(pA); 71 assert(pA.get() == 0); 80 std::auto_ptr<A> pA(new A); 81 A* ptrA = pA.get() [all...] |
shared_ptr.pass.cpp | 46 const std::shared_ptr<A> pA(new A); 47 A* ptrA = pA.get(); 50 pB = pA; 54 assert(pA.use_count() == 2); 55 assert(pA.get() == pB.get()); 58 assert(pA.use_count() == 1); 65 const std::shared_ptr<A> pA; 66 A* ptrA = pA.get(); 69 pB = pA; 73 assert(pA.use_count() == 0) [all...] |
shared_ptr_Y.pass.cpp | 46 const std::shared_ptr<A> pA(new A); 47 A* ptrA = pA.get(); 50 pB = pA; 54 assert(pA.use_count() == 2); 55 assert(pA.get() == pB.get()); 58 assert(pA.use_count() == 1); 65 const std::shared_ptr<A> pA; 66 A* ptrA = pA.get(); 69 pB = pA; 73 assert(pA.use_count() == 0) [all...] |
shared_ptr_Y_rv.pass.cpp | 47 std::shared_ptr<A> pA(new A); 48 A* ptrA = pA.get(); 51 pB = std::move(pA); 55 assert(pA.use_count() == 0); 56 assert(pA.get() == 0); 59 assert(pA.use_count() == 0); 66 std::shared_ptr<A> pA; 67 A* ptrA = pA.get(); 70 pB = std::move(pA); 74 assert(pA.use_count() == 0) [all...] |
shared_ptr_rv.pass.cpp | 47 std::shared_ptr<A> pA(new A); 48 A* ptrA = pA.get(); 51 pB = std::move(pA); 55 assert(pA.use_count() == 0); 56 assert(pA.get() == 0); 59 assert(pA.use_count() == 0); 66 std::shared_ptr<A> pA; 67 A* ptrA = pA.get(); 70 pB = std::move(pA); 74 assert(pA.use_count() == 0) [all...] |
unique_ptr_Y.pass.cpp | 46 std::unique_ptr<A> pA(new A); 47 A* ptrA = pA.get(); 50 pB = std::move(pA); 54 assert(pA.get() == 0); 63 std::unique_ptr<A> pA; 64 A* ptrA = pA.get(); 67 pB = std::move(pA); 71 assert(pA.get() == 0); 80 std::unique_ptr<A> pA(new A); 81 A* ptrA = pA.get() [all...] |
/ndk/sources/cxx-stl/llvm-libc++/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/ |
shared_ptr_Y.pass.cpp | 60 const std::shared_ptr<A> pA(new A); 61 assert(pA.use_count() == 1); 65 std::weak_ptr<B> pB(pA); 69 assert(pA.use_count() == 1); 71 assert(pA.use_count() == 1); 78 std::shared_ptr<A> pA; 79 assert(pA.use_count() == 0); 83 std::weak_ptr<B> pB(pA); 87 assert(pA.use_count() == 0); 89 assert(pA.use_count() == 0) [all...] |
weak_ptr.pass.cpp | 58 const std::weak_ptr<A> pA(ps); 59 assert(pA.use_count() == 1); 63 std::weak_ptr<A> pB(pA); 67 assert(pA.use_count() == 1); 69 assert(pA.use_count() == 1); 76 std::weak_ptr<A> pA; 77 assert(pA.use_count() == 0); 81 std::weak_ptr<A> pB(pA); 85 assert(pA.use_count() == 0); 87 assert(pA.use_count() == 0) [all...] |
weak_ptr_Y.pass.cpp | 60 const std::weak_ptr<A> pA(std::shared_ptr<A>(new A)); 61 assert(pA.use_count() == 0); 65 std::weak_ptr<B> pB(pA); 69 assert(pA.use_count() == 0); 71 assert(pA.use_count() == 0); 78 std::weak_ptr<A> pA; 79 assert(pA.use_count() == 0); 83 std::weak_ptr<B> pB(pA); 87 assert(pA.use_count() == 0); 89 assert(pA.use_count() == 0) [all...] |
/external/openssl/crypto/bn/ |
bn_gcd.c | 512 BIGNUM *pA, *pB; 571 pA = &local_A; 572 BN_with_flags(pA, A, BN_FLG_CONSTTIME); 575 if (!BN_div(D,M,pA,B,ctx)) goto err;
|
/frameworks/compile/libbcc/tests/data/src/ |
structs.c | 86 struct a *pA; 87 pA = &z; 88 pA->x += 5; 89 return pA->x;
|
/frameworks/compile/mclinker/unittests/ |
HashTableTest.cpp | 78 int* pA = &A; 87 entry = hashTable->insert(pA, exist);
|
/external/opencv/cv/src/ |
cvsubdivision2d.cpp | 521 CvSubdiv2DPoint *pA, *pB, *pC; 547 pA = cvSubdiv2DAddPoint( subdiv, ppA, 0 ); 555 cvSubdiv2DSetEdgePoints( edge_AB, pA, pB ); 557 cvSubdiv2DSetEdgePoints( edge_CA, pC, pA );
|
cvlkpyramid.cpp | [all...] |
/external/valgrind/main/coregrind/m_debuginfo/ |
readdwarf3.c | 555 UChar* pA; 568 pA = (UChar*)p; 569 ML_(write_Addr)(pA, ML_(read_Addr)(pA) + di->text_debug_bias); 572 pA = (UChar*)p; 573 ML_(write_Addr)(pA, ML_(read_Addr)(pA) + di->text_debug_bias); [all...] |