OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:pB
(Results
1 - 25
of
67
) sorted by null
1
2
3
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.cast/
static_pointer_cast.pass.cpp
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
));
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
));
59
std::shared_ptr<B>
pB
= std::static_pointer_cast<B>(pA);
60
assert(
pB
.get() == pA.get())
[
all
...]
const_pointer_cast.pass.cpp
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
));
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
));
dynamic_pointer_cast.pass.cpp
46
const std::shared_ptr<B>
pB
(new A);
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
));
52
const std::shared_ptr<B>
pB
(new B);
53
std::shared_ptr<A> pA = std::dynamic_pointer_cast<A>(
pB
);
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.cast/
static_pointer_cast.pass.cpp
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
));
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
));
59
std::shared_ptr<B>
pB
= std::static_pointer_cast<B>(pA);
60
assert(
pB
.get() == pA.get())
[
all
...]
const_pointer_cast.pass.cpp
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
));
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
));
dynamic_pointer_cast.pass.cpp
46
const std::shared_ptr<B>
pB
(new A);
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
));
52
const std::shared_ptr<B>
pB
(new B);
53
std::shared_ptr<A> pA = std::dynamic_pointer_cast<A>(
pB
);
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.assign/
auto_ptr_Y.pass.cpp
49
std::shared_ptr<B>
pB
(new B);
50
pB
= std::move(pA);
53
assert(
pB
.use_count() == 1);
55
assert(
pB
.get() == ptrA);
66
std::shared_ptr<B>
pB
(new B);
67
pB
= std::move(pA);
70
assert(
pB
.use_count() == 1);
72
assert(
pB
.get() == ptrA);
83
std::shared_ptr<B>
pB
;
84
pB
= std::move(pA)
[
all
...]
unique_ptr_Y.pass.cpp
49
std::shared_ptr<B>
pB
(new B);
50
pB
= std::move(pA);
53
assert(
pB
.use_count() == 1);
55
assert(
pB
.get() == ptrA);
66
std::shared_ptr<B>
pB
(new B);
67
pB
= std::move(pA);
70
assert(
pB
.use_count() == 1);
72
assert(
pB
.get() == ptrA);
83
std::shared_ptr<B>
pB
;
84
pB
= std::move(pA)
[
all
...]
shared_ptr.pass.cpp
49
std::shared_ptr<A>
pB
(new A);
50
pB
= pA;
53
assert(
pB
.use_count() == 2);
55
assert(pA.get() ==
pB
.get());
56
assert(
pB
.get() == ptrA);
68
std::shared_ptr<A>
pB
(new A);
69
pB
= pA;
72
assert(
pB
.use_count() == 0);
74
assert(pA.get() ==
pB
.get());
75
assert(
pB
.get() == ptrA)
[
all
...]
shared_ptr_Y.pass.cpp
49
std::shared_ptr<B>
pB
(new B);
50
pB
= pA;
53
assert(
pB
.use_count() == 2);
55
assert(pA.get() ==
pB
.get());
56
assert(
pB
.get() == ptrA);
68
std::shared_ptr<B>
pB
(new B);
69
pB
= pA;
72
assert(
pB
.use_count() == 0);
74
assert(pA.get() ==
pB
.get());
75
assert(
pB
.get() == ptrA)
[
all
...]
shared_ptr_Y_rv.pass.cpp
50
std::shared_ptr<B>
pB
(new B);
51
pB
= std::move(pA);
54
assert(
pB
.use_count() == 1);
57
assert(
pB
.get() == ptrA);
69
std::shared_ptr<B>
pB
(new B);
70
pB
= std::move(pA);
73
assert(
pB
.use_count() == 0);
76
assert(
pB
.get() == ptrA);
88
std::shared_ptr<B>
pB
;
89
pB
= std::move(pA)
[
all
...]
shared_ptr_rv.pass.cpp
50
std::shared_ptr<A>
pB
(new A);
51
pB
= std::move(pA);
54
assert(
pB
.use_count() == 1);
57
assert(
pB
.get() == ptrA);
69
std::shared_ptr<A>
pB
(new A);
70
pB
= std::move(pA);
73
assert(
pB
.use_count() == 0);
76
assert(
pB
.get() == ptrA);
88
std::shared_ptr<A>
pB
;
89
pB
= std::move(pA)
[
all
...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.assign/
auto_ptr_Y.pass.cpp
49
std::shared_ptr<B>
pB
(new B);
50
pB
= std::move(pA);
53
assert(
pB
.use_count() == 1);
55
assert(
pB
.get() == ptrA);
66
std::shared_ptr<B>
pB
(new B);
67
pB
= std::move(pA);
70
assert(
pB
.use_count() == 1);
72
assert(
pB
.get() == ptrA);
83
std::shared_ptr<B>
pB
;
84
pB
= std::move(pA)
[
all
...]
unique_ptr_Y.pass.cpp
49
std::shared_ptr<B>
pB
(new B);
50
pB
= std::move(pA);
53
assert(
pB
.use_count() == 1);
55
assert(
pB
.get() == ptrA);
66
std::shared_ptr<B>
pB
(new B);
67
pB
= std::move(pA);
70
assert(
pB
.use_count() == 1);
72
assert(
pB
.get() == ptrA);
83
std::shared_ptr<B>
pB
;
84
pB
= std::move(pA)
[
all
...]
shared_ptr.pass.cpp
49
std::shared_ptr<A>
pB
(new A);
50
pB
= pA;
53
assert(
pB
.use_count() == 2);
55
assert(pA.get() ==
pB
.get());
56
assert(
pB
.get() == ptrA);
68
std::shared_ptr<A>
pB
(new A);
69
pB
= pA;
72
assert(
pB
.use_count() == 0);
74
assert(pA.get() ==
pB
.get());
75
assert(
pB
.get() == ptrA)
[
all
...]
shared_ptr_Y.pass.cpp
49
std::shared_ptr<B>
pB
(new B);
50
pB
= pA;
53
assert(
pB
.use_count() == 2);
55
assert(pA.get() ==
pB
.get());
56
assert(
pB
.get() == ptrA);
68
std::shared_ptr<B>
pB
(new B);
69
pB
= pA;
72
assert(
pB
.use_count() == 0);
74
assert(pA.get() ==
pB
.get());
75
assert(
pB
.get() == ptrA)
[
all
...]
shared_ptr_Y_rv.pass.cpp
50
std::shared_ptr<B>
pB
(new B);
51
pB
= std::move(pA);
54
assert(
pB
.use_count() == 1);
57
assert(
pB
.get() == ptrA);
69
std::shared_ptr<B>
pB
(new B);
70
pB
= std::move(pA);
73
assert(
pB
.use_count() == 0);
76
assert(
pB
.get() == ptrA);
88
std::shared_ptr<B>
pB
;
89
pB
= std::move(pA)
[
all
...]
shared_ptr_rv.pass.cpp
50
std::shared_ptr<A>
pB
(new A);
51
pB
= std::move(pA);
54
assert(
pB
.use_count() == 1);
57
assert(
pB
.get() == ptrA);
69
std::shared_ptr<A>
pB
(new A);
70
pB
= std::move(pA);
73
assert(
pB
.use_count() == 0);
76
assert(
pB
.get() == ptrA);
88
std::shared_ptr<A>
pB
;
89
pB
= std::move(pA)
[
all
...]
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.assign/
weak_ptr.pass.cpp
49
std::weak_ptr<A>
pB
;
50
pB
= pA;
53
assert(
pB
.use_count() == 1);
67
std::weak_ptr<A>
pB
;
68
pB
= std::move(pA);
71
assert(
pB
.use_count() == 1);
weak_ptr_Y.pass.cpp
49
std::weak_ptr<B>
pB
;
50
pB
= pA;
53
assert(
pB
.use_count() == 1);
67
std::weak_ptr<B>
pB
;
68
pB
= std::move(pA);
71
assert(
pB
.use_count() == 1);
shared_ptr_Y.pass.cpp
48
std::weak_ptr<B>
pB
;
49
pB
= pA;
52
assert(
pB
.use_count() == 1);
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.assign/
weak_ptr.pass.cpp
49
std::weak_ptr<A>
pB
;
50
pB
= pA;
53
assert(
pB
.use_count() == 1);
67
std::weak_ptr<A>
pB
;
68
pB
= std::move(pA);
71
assert(
pB
.use_count() == 1);
weak_ptr_Y.pass.cpp
49
std::weak_ptr<B>
pB
;
50
pB
= pA;
53
assert(
pB
.use_count() == 1);
67
std::weak_ptr<B>
pB
;
68
pB
= std::move(pA);
71
assert(
pB
.use_count() == 1);
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
shared_ptr_pointer.pass.cpp
48
std::shared_ptr<B>
pB
(pA, &b);
52
assert(
pB
.use_count() == 2);
53
assert(
pB
.get() == &b);
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
shared_ptr_pointer.pass.cpp
48
std::shared_ptr<B>
pB
(pA, &b);
52
assert(
pB
.use_count() == 2);
53
assert(
pB
.get() == &b);
Completed in 1022 milliseconds
1
2
3