OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:pA
(Results
1 - 25
of
43
) sorted by null
1
2
/external/libcxx/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++/libcxx/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
...]
/external/libcxx/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++/libcxx/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
...]
/external/libcxx/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
...]
/external/libcxx/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
65
const std::weak_ptr<A>
pA
(ps);
66
assert(
pA
.use_count() == 1);
70
std::weak_ptr<A> pB(
pA
);
74
assert(
pA
.use_count() == 1);
76
assert(
pA
.use_count() == 1);
83
std::weak_ptr<A>
pA
;
84
assert(
pA
.use_count() == 0);
88
std::weak_ptr<A> pB(
pA
);
92
assert(
pA
.use_count() == 0);
94
assert(
pA
.use_count() == 0)
[
all
...]
weak_ptr_Y.pass.cpp
67
const std::weak_ptr<A>
pA
(std::shared_ptr<A>(new A));
68
assert(
pA
.use_count() == 0);
72
std::weak_ptr<B> pB(
pA
);
76
assert(
pA
.use_count() == 0);
78
assert(
pA
.use_count() == 0);
85
std::weak_ptr<A>
pA
;
86
assert(
pA
.use_count() == 0);
90
std::weak_ptr<B> pB(
pA
);
94
assert(
pA
.use_count() == 0);
96
assert(
pA
.use_count() == 0)
[
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
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
...]
Completed in 237 milliseconds
1
2