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
73
) sorted by null
1
2
3
/external/libcxx/test/std/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
);
/prebuilts/ndk/r11/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
);
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/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/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.assign/
auto_ptr_Y.pass.cpp
50
std::shared_ptr<B>
pB
(new B);
51
pB
= std::move(pA);
54
assert(
pB
.use_count() == 1);
56
assert(
pB
.get() == ptrA);
67
std::shared_ptr<B>
pB
(new B);
68
pB
= std::move(pA);
71
assert(
pB
.use_count() == 1);
73
assert(
pB
.get() == ptrA);
84
std::shared_ptr<B>
pB
;
85
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); // no longer true due to LWG 2415
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
51
std::shared_ptr<B>
pB
(new B);
52
pB
= std::move(pA);
55
assert(
pB
.use_count() == 1);
58
assert(
pB
.get() == ptrA);
70
std::shared_ptr<B>
pB
(new B);
71
pB
= std::move(pA);
74
assert(
pB
.use_count() == 0);
77
assert(
pB
.get() == ptrA);
89
std::shared_ptr<B>
pB
;
90
pB
= std::move(pA)
[
all
...]
shared_ptr_rv.pass.cpp
51
std::shared_ptr<A>
pB
(new A);
52
pB
= std::move(pA);
55
assert(
pB
.use_count() == 1);
58
assert(
pB
.get() == ptrA);
70
std::shared_ptr<A>
pB
(new A);
71
pB
= std::move(pA);
74
assert(
pB
.use_count() == 0);
77
assert(
pB
.get() == ptrA);
89
std::shared_ptr<A>
pB
;
90
pB
= std::move(pA)
[
all
...]
/prebuilts/ndk/r11/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
...]
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/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); // no longer true due to LWG 2415
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
...]
Completed in 4852 milliseconds
1
2
3