/third_party/boost/libs/smart_ptr/test/ |
D | weak_ptr_test.cpp | 78 BOOST_TEST(wp.use_count() == 0); in default_constructor() 83 BOOST_TEST(wp.use_count() == 0); in default_constructor() 88 BOOST_TEST(wp.use_count() == 0); in default_constructor() 98 BOOST_TEST(wp.use_count() == sp.use_count()); in shared_ptr_constructor() 101 BOOST_TEST(wp2.use_count() == sp.use_count()); in shared_ptr_constructor() 109 BOOST_TEST(wp.use_count() == sp.use_count()); in shared_ptr_constructor() 110 BOOST_TEST(wp.use_count() == 1); in shared_ptr_constructor() 112 BOOST_TEST(wp.use_count() == 2); in shared_ptr_constructor() 118 BOOST_TEST(wp.use_count() == sp.use_count()); in shared_ptr_constructor() 119 BOOST_TEST(wp.use_count() == 1); in shared_ptr_constructor() [all …]
|
D | weak_ptr_alias_test.cpp | 48 BOOST_TEST( p2.use_count() == p.use_count() ); in main() 56 BOOST_TEST( p3.use_count() == p2.use_count() ); in main() 65 BOOST_TEST( p3.use_count() == p.use_count() ); in main() 74 BOOST_TEST( p3.use_count() == p2.use_count() ); in main() 83 BOOST_TEST( p3.use_count() == p.use_count() ); in main() 92 BOOST_TEST( p3.use_count() == p2.use_count() ); in main() 101 BOOST_TEST( p3.use_count() == p.use_count() ); in main() 110 BOOST_TEST( p3.use_count() == p2.use_count() ); in main() 122 BOOST_TEST( p2.use_count() == p.use_count() ); in main() 129 BOOST_TEST( p3.use_count() == p2.use_count() ); in main() [all …]
|
D | shared_ptr_alias_move_test.cpp | 56 BOOST_TEST( p2.use_count() == 0 ); in main() 59 BOOST_TEST( p.use_count() == 0 ); in main() 66 BOOST_TEST( p2.use_count() == 0 ); in main() 69 BOOST_TEST( p.use_count() == 0 ); in main() 80 BOOST_TEST( p2.use_count() == 1 ); in main() 83 BOOST_TEST( p.use_count() == 0 ); in main() 91 BOOST_TEST( p2.use_count() == 0 ); in main() 94 BOOST_TEST( p3.use_count() == 0 ); in main() 100 BOOST_TEST( p2.use_count() == 1 ); in main() 103 BOOST_TEST( p4.use_count() == 0 ); in main() [all …]
|
D | shared_ptr_test.cpp | 69 BOOST_TEST(pi.use_count() == 0); in default_constructor() 77 BOOST_TEST(pv.use_count() == 0); in default_constructor() 85 BOOST_TEST(px.use_count() == 0); in default_constructor() 147 BOOST_TEST(pt.use_count() == 1); in pc0_test() 168 BOOST_TEST(pi.use_count() == 1); in pointer_constructor() 177 BOOST_TEST(pi.use_count() == 1); in pointer_constructor() 186 BOOST_TEST(pv.use_count() == 1); in pointer_constructor() 195 BOOST_TEST(pv.use_count() == 1); in pointer_constructor() 209 BOOST_TEST(px.use_count() == 1); in pointer_constructor() 218 BOOST_TEST(px.use_count() == 1); in pointer_constructor() [all …]
|
D | shared_ptr_alias_test.cpp | 45 BOOST_TEST( p2.use_count() == p.use_count() ); in main() 53 BOOST_TEST( p2.use_count() == p.use_count() ); in main() 65 BOOST_TEST( p2.use_count() == p.use_count() ); in main() 74 BOOST_TEST( p2.use_count() == p3.use_count() ); in main() 85 BOOST_TEST( p2.use_count() == p.use_count() ); in main() 96 BOOST_TEST( p2.use_count() == p3.use_count() ); in main() 107 BOOST_TEST( p2.use_count() == p.use_count() ); in main() 115 BOOST_TEST( p2.use_count() == p.use_count() ); in main() 126 BOOST_TEST( p2.use_count() == p.use_count() ); in main() 138 BOOST_TEST( p2.use_count() == p3.use_count() ); in main()
|
D | smart_ptr_test.cpp | 91 std::cout << incomplete.use_count() << ' ' << incomplete.unique() << '\n'; in check_incomplete() 150 BOOST_TEST( cp.use_count() == 1 ); in test() 160 BOOST_TEST( cp.use_count() == 2 ); in test() 161 BOOST_TEST( cp2.use_count() == 2 ); in test() 169 BOOST_TEST( cp.use_count() == 3 ); in test() 170 BOOST_TEST( cp2.use_count() == 3 ); in test() 171 BOOST_TEST( cp3.use_count() == 3 ); in test() 173 BOOST_TEST( cp2.use_count() == 2 ); in test() 174 BOOST_TEST( cp3.use_count() == 2 ); in test() 190 BOOST_TEST( cp2.use_count() == 2 ); in test() [all …]
|
D | quick.cpp | 44 BOOST_TEST_EQ( p1.use_count(), 1 ); in main() 47 BOOST_TEST_EQ( p2.use_count(), 2 ); in main() 50 BOOST_TEST_EQ( wp.use_count(), 2 ); in main() 53 BOOST_TEST_EQ( wp.use_count(), 1 ); in main() 56 BOOST_TEST_EQ( wp.use_count(), 0 ); in main() 63 BOOST_TEST_EQ( p1.use_count(), 1 ); in main() 66 BOOST_TEST_EQ( p2.use_count(), 2 ); in main() 69 BOOST_TEST_EQ( wp.use_count(), 2 ); in main() 72 BOOST_TEST_EQ( wp.use_count(), 1 ); in main() 75 BOOST_TEST_EQ( wp.use_count(), 0 ); in main()
|
D | intrusive_ptr_test.cpp | 66 long use_count() const in use_count() function in N::base 174 BOOST_TEST(p->use_count() == 0); in pointer_constructor() 180 BOOST_TEST(px->use_count() == 1); in pointer_constructor() 187 BOOST_TEST(p->use_count() == 0); in pointer_constructor() 195 BOOST_TEST(p->use_count() == 1); in pointer_constructor() 199 BOOST_TEST(px->use_count() == 1); in pointer_constructor() 284 BOOST_TEST(px->use_count() == 1); in test() 290 BOOST_TEST(px->use_count() == 2); in test() 293 BOOST_TEST(px->use_count() == 1); in test() 348 BOOST_TEST(p1->use_count() == 2); in copy_assignment() [all …]
|
D | atomic_sp_test.cpp | 34 BOOST_TEST_EQ( p2.use_count(), 0 ); in main() 46 BOOST_TEST_EQ( px.use_count(), 3 ); in main() 47 BOOST_TEST_EQ( p2.use_count(), 3 ); in main() 62 BOOST_TEST_EQ( px.use_count(), 3 ); in main() 63 BOOST_TEST_EQ( p2.use_count(), 3 ); in main() 75 BOOST_TEST_EQ( px.use_count(), 3 ); in main() 76 BOOST_TEST_EQ( p2.use_count(), 3 ); in main() 88 BOOST_TEST_EQ( px.use_count(), 3 ); in main() 89 BOOST_TEST_EQ( p2.use_count(), 3 ); in main() 104 BOOST_TEST_EQ( px.use_count(), 3 ); in main() [all …]
|
D | shared_ptr_rv_pointer_cast_test.cpp | 41 BOOST_TEST(px.use_count() == 0); in main() 44 BOOST_TEST(py1.use_count() == 2); in main() 45 BOOST_TEST(py2.use_count() == 2); in main() 54 BOOST_TEST(px.use_count() == 0); in main() 57 BOOST_TEST(px2.use_count() == 2); in main() 58 BOOST_TEST(px3.use_count() == 2); in main() 67 BOOST_TEST(pv.use_count() == 0); in main() 70 BOOST_TEST(py1.use_count() == 2); in main() 71 BOOST_TEST(py2.use_count() == 2); in main() 81 BOOST_TEST(pu.use_count() == 0); in main() [all …]
|
D | abi_test_main.cpp | 42 BOOST_TEST_EQ( p.use_count(), 1 ); in main() 46 BOOST_TEST_EQ( p.use_count(), 0 ); in main() 55 BOOST_TEST_EQ( p1.use_count(), 1 ); in main() 59 BOOST_TEST_EQ( p1.use_count(), 2 ); in main() 60 BOOST_TEST_EQ( p2.use_count(), 2 ); in main() 64 BOOST_TEST_EQ( p2.use_count(), 1 ); in main() 74 BOOST_TEST_EQ( p.use_count(), 1 ); in main() 78 BOOST_TEST_EQ( p.use_count(), 0 ); in main()
|
D | make_shared_array_noinit_test.cpp | 50 BOOST_TEST(result.use_count() == 1); in main() 58 BOOST_TEST(result.use_count() == 1); in main() 66 BOOST_TEST(result.use_count() == 1); in main() 74 BOOST_TEST(result.use_count() == 1); in main() 82 BOOST_TEST(result.use_count() == 1); in main() 90 BOOST_TEST(result.use_count() == 1); in main() 98 BOOST_TEST(result.use_count() == 1); in main() 106 BOOST_TEST(result.use_count() == 1); in main() 114 BOOST_TEST(result.use_count() == 1); in main() 126 BOOST_TEST(result.use_count() == 1); in main() [all …]
|
D | make_shared_test.cpp | 61 BOOST_TEST( pi.use_count() == 1 ); in main() 70 BOOST_TEST( pi.use_count() == 1 ); in main() 77 BOOST_TEST( pi.use_count() == 1 ); in main() 90 BOOST_TEST( pi.use_count() == 1 ); in main() 104 BOOST_TEST( pi.use_count() == 1 ); in main() 118 BOOST_TEST( pi.use_count() == 1 ); in main() 132 BOOST_TEST( pi.use_count() == 1 ); in main() 146 BOOST_TEST( pi.use_count() == 1 ); in main() 160 BOOST_TEST( pi.use_count() == 1 ); in main() 174 BOOST_TEST( pi.use_count() == 1 ); in main() [all …]
|
D | make_shared_array_test.cpp | 50 BOOST_TEST(result.use_count() == 1); in main() 61 BOOST_TEST(result.use_count() == 1); in main() 72 BOOST_TEST(result.use_count() == 1); in main() 84 BOOST_TEST(result.use_count() == 1); in main() 96 BOOST_TEST(result.use_count() == 1); in main() 107 BOOST_TEST(result.use_count() == 1); in main() 118 BOOST_TEST(result.use_count() == 1); in main() 130 BOOST_TEST(result.use_count() == 1); in main() 142 BOOST_TEST(result.use_count() == 1); in main() 154 BOOST_TEST(result.use_count() == 1); in main() [all …]
|
D | make_local_shared_const_test.cpp | 65 template<class T> static long use_count( boost::local_shared_ptr<T> const & p ) in use_count() function 67 return boost::shared_ptr<T>( p ).use_count() - 1; in use_count() 77 BOOST_TEST( use_count( pi ) == 1 ); in main() 87 BOOST_TEST( use_count( pi ) == 1 ); in main() 101 BOOST_TEST( use_count( pi ) == 1 ); in main() 116 BOOST_TEST( use_count( pi ) == 1 ); in main() 131 BOOST_TEST( use_count( pi ) == 1 ); in main() 146 BOOST_TEST( use_count( pi ) == 1 ); in main() 161 BOOST_TEST( use_count( pi ) == 1 ); in main() 176 BOOST_TEST( use_count( pi ) == 1 ); in main() [all …]
|
D | make_local_shared_test.cpp | 65 template<class T> static long use_count( boost::local_shared_ptr<T> const & p ) in use_count() function 67 return boost::shared_ptr<T>( p ).use_count() - 1; in use_count() 77 BOOST_TEST( use_count( pi ) == 1 ); in main() 93 BOOST_TEST( use_count( pi ) == 1 ); in main() 107 BOOST_TEST( use_count( pi ) == 1 ); in main() 122 BOOST_TEST( use_count( pi ) == 1 ); in main() 137 BOOST_TEST( use_count( pi ) == 1 ); in main() 152 BOOST_TEST( use_count( pi ) == 1 ); in main() 167 BOOST_TEST( use_count( pi ) == 1 ); in main() 182 BOOST_TEST( use_count( pi ) == 1 ); in main() [all …]
|
D | allocate_shared_array_noinit_test.cpp | 87 BOOST_TEST(result.use_count() == 1); in main() 95 BOOST_TEST(result.use_count() == 1); in main() 103 BOOST_TEST(result.use_count() == 1); in main() 111 BOOST_TEST(result.use_count() == 1); in main() 119 BOOST_TEST(result.use_count() == 1); in main() 127 BOOST_TEST(result.use_count() == 1); in main() 135 BOOST_TEST(result.use_count() == 1); in main() 143 BOOST_TEST(result.use_count() == 1); in main() 151 BOOST_TEST(result.use_count() == 1); in main() 163 BOOST_TEST(result.use_count() == 1); in main() [all …]
|
D | make_shared_const_test.cpp | 61 BOOST_TEST( pi.use_count() == 1 ); in main() 70 BOOST_TEST( pi.use_count() == 1 ); in main() 83 BOOST_TEST( pi.use_count() == 1 ); in main() 97 BOOST_TEST( pi.use_count() == 1 ); in main() 111 BOOST_TEST( pi.use_count() == 1 ); in main() 125 BOOST_TEST( pi.use_count() == 1 ); in main() 139 BOOST_TEST( pi.use_count() == 1 ); in main() 153 BOOST_TEST( pi.use_count() == 1 ); in main() 167 BOOST_TEST( pi.use_count() == 1 ); in main() 181 BOOST_TEST( pi.use_count() == 1 ); in main() [all …]
|
D | allocate_shared_array_test.cpp | 87 BOOST_TEST(result.use_count() == 1); in main() 98 BOOST_TEST(result.use_count() == 1); in main() 109 BOOST_TEST(result.use_count() == 1); in main() 121 BOOST_TEST(result.use_count() == 1); in main() 133 BOOST_TEST(result.use_count() == 1); in main() 144 BOOST_TEST(result.use_count() == 1); in main() 155 BOOST_TEST(result.use_count() == 1); in main() 167 BOOST_TEST(result.use_count() == 1); in main() 179 BOOST_TEST(result.use_count() == 1); in main() 191 BOOST_TEST(result.use_count() == 1); in main() [all …]
|
D | weak_ptr_move_test.cpp | 47 BOOST_TEST( p.use_count() == 1 ); in main() 51 BOOST_TEST( p2.use_count() == 1 ); in main() 56 BOOST_TEST( p3.use_count() == 1 ); in main() 68 BOOST_TEST( p.use_count() == 1 ); in main() 73 BOOST_TEST( p2.use_count() == 1 ); in main() 79 BOOST_TEST( p3.use_count() == 1 ); in main() 91 BOOST_TEST( p.use_count() == 1 ); in main() 98 BOOST_TEST( p2.use_count() == 1 ); in main() 107 BOOST_TEST( p3.use_count() == 1 ); in main()
|
D | shared_ptr_basic_test.cpp | 202 BOOST_TEST(p.use_count() == 2); in main() 203 BOOST_TEST(p2.use_count() == 1); in main() 204 BOOST_TEST(p3.use_count() == 2); in main() 219 BOOST_TEST(wp1.use_count() != 0); in main() 235 BOOST_TEST(p5.use_count() == 1); in main() 238 BOOST_TEST(wp1.use_count() == 0); in main() 253 BOOST_TEST(wp2.use_count() == 1); in main() 266 BOOST_TEST(wp3.use_count() == 1); in main() 271 BOOST_TEST(wp4.use_count() == 1); in main() 284 BOOST_TEST(wp1.use_count() == 1); in main() [all …]
|
D | shared_from_raw_test5.cpp | 88 BOOST_TEST( early_px.use_count() > 0 ); in main() 92 BOOST_TEST( early_px.use_count() == 2 && px.use_count() == 2 ); in main() 95 BOOST_TEST( early_px.use_count() == 1 ); in main() 110 BOOST_TEST( px.use_count() == 1 ); in main() 122 BOOST_TEST( early_px.use_count() > 0 ); in main() 124 BOOST_TEST( early_px.use_count() == 2 && px.use_count() == 2 ); in main() 126 BOOST_TEST( px.use_count() == 1 ); in main()
|
/third_party/boost/libs/interprocess/example/ |
D | doc_shared_ptr.cpp | 79 assert(local_shared_ptr.use_count() == 1); in main() 84 assert(local_shared_ptr.use_count() == 2); in main() 88 assert(local_shared_ptr.use_count() == 0); in main() 89 assert(owner1->shared_ptr_.use_count() == 1); in main() 94 assert(owner1->shared_ptr_.use_count() == 2); in main() 95 assert(owner2->shared_ptr_.use_count() == 2); in main() 112 assert(owner1->shared_ptr_.use_count() == 2); in main() 113 assert(owner2->shared_ptr_.use_count() == 2); in main() 118 assert(owner2->shared_ptr_.use_count() == 1); in main() 122 assert(local_observer1.use_count() == owner2->shared_ptr_.use_count()); in main() [all …]
|
/third_party/boost/libs/interprocess/test/ |
D | shared_ptr_test.cpp | 171 if(string_shared_ptr.use_count() != static_cast<long>(my_sharedptr_vector.size()+1)){ in string_shared_ptr_vector_insertion_test() 177 if(string_weak_ptr.use_count() != static_cast<long>(my_sharedptr_vector.size()+1)){ in string_shared_ptr_vector_insertion_test() 182 if(string_weak_ptr.use_count() != static_cast<long>(my_sharedptr_vector.size())){ in string_shared_ptr_vector_insertion_test() 186 if(string_shared_ptr.use_count() != 0){ in string_shared_ptr_vector_insertion_test() 192 if(string_shared_ptr.use_count() != static_cast<long>(my_sharedptr_vector.size()+1)){ in string_shared_ptr_vector_insertion_test() 199 if(string_shared_ptr.use_count() != static_cast<long>(my_sharedptr_vector.size()+1)){ in string_shared_ptr_vector_insertion_test() 219 if(string_shared_ptr.use_count() != 1){ in string_shared_ptr_vector_insertion_test() 437 BOOST_TEST(p.use_count() == 2); in basic_shared_ptr_test() 438 BOOST_TEST(p2.use_count() == 1); in basic_shared_ptr_test() 439 BOOST_TEST(p3.use_count() == 2); in basic_shared_ptr_test() [all …]
|
D | intrusive_ptr_test.cpp | 52 long use_count() const in use_count() function in N::base 127 BOOST_TEST(p->use_count() == 0); in pointer_constructor() 131 BOOST_TEST(px->use_count() == 1); in pointer_constructor() 136 BOOST_TEST(p->use_count() == 0); in pointer_constructor() 139 BOOST_TEST(p->use_count() == 1); in pointer_constructor() 143 BOOST_TEST(px->use_count() == 1); in pointer_constructor() 211 BOOST_TEST(px2->use_count() == 1); in move_constructor() 232 BOOST_TEST(px->use_count() == 1); in test() 236 BOOST_TEST(px->use_count() == 2); in test() 239 BOOST_TEST(px->use_count() == 1); in test() [all …]
|