/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.capacity/ |
D | reserve.pass.cpp | 25 assert(v.capacity() >= 10); in main() 30 assert(v.capacity() == 100); in main() 33 assert(v.capacity() == 100); in main() 36 assert(v.capacity() == 150); in main() 41 assert(v.capacity() == 100); in main() 44 assert(v.capacity() == 100); in main() 47 assert(v.capacity() == 150); in main() 54 assert(v.capacity() >= 10); in main() 59 assert(v.capacity() == 100); in main() 62 assert(v.capacity() == 100); in main() [all …]
|
D | resize_size.pass.cpp | 28 assert(v.capacity() == 100); in main() 32 assert(v.capacity() >= 200); in main() 39 assert(v.capacity() == 100); in main() 43 assert(v.capacity() >= 200); in main() 51 assert(v.capacity() == 100); in main() 55 assert(v.capacity() >= 200); in main() 62 assert(v.capacity() == 100); in main() 66 assert(v.capacity() >= 200); in main() 75 assert(v.capacity() == 100); in main() 79 assert(v.capacity() >= 200); in main()
|
D | capacity.pass.cpp | 24 assert(v.capacity() == 0); in main() 29 assert(v.capacity() == 100); in main() 31 assert(v.capacity() > 101); in main() 37 assert(v.capacity() == 0); in main() 42 assert(v.capacity() == 100); in main() 44 assert(v.capacity() > 101); in main()
|
D | resize_size_value.pass.cpp | 26 assert(v.capacity() == 100); in main() 30 assert(v.capacity() >= 200); in main() 41 assert(v.capacity() == 100); in main() 44 assert(v.capacity() >= 200); in main() 52 assert(v.capacity() == 100); in main() 57 assert(v.capacity() >= 200); in main() 68 assert(v.capacity() == 100); in main() 72 assert(v.capacity() >= 200); in main()
|
D | swap.pass.cpp | 29 assert(v1.capacity() == 200); in main() 32 assert(v2.capacity() == 100); in main() 43 assert(v1.capacity() == 200); in main() 46 assert(v2.capacity() == 100); in main()
|
D | shrink_to_fit.pass.cpp | 27 assert(v.capacity() == 101); in main() 36 assert(v.capacity() == 101); in main() 46 assert(v.capacity() == 200); in main() 57 assert(v.capacity() == 101); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector.bool/ |
D | reserve.pass.cpp | 25 assert(v.capacity() >= 10); in main() 29 assert(v.capacity() >= 100); in main() 32 assert(v.capacity() >= 100); in main() 35 assert(v.capacity() >= 150); in main() 41 assert(v.capacity() >= 10); in main() 45 assert(v.capacity() >= 100); in main() 48 assert(v.capacity() >= 100); in main() 51 assert(v.capacity() >= 150); in main()
|
D | capacity.pass.cpp | 24 assert(v.capacity() == 0); in main() 28 assert(v.capacity() >= 100); in main() 30 assert(v.capacity() >= 101); in main() 35 assert(v.capacity() == 0); in main() 39 assert(v.capacity() >= 100); in main() 41 assert(v.capacity() >= 101); in main()
|
D | swap.pass.cpp | 27 assert(v1.capacity() >= 200); in main() 29 assert(v2.capacity() >= 100); in main() 37 assert(v1.capacity() >= 200); in main() 39 assert(v2.capacity() >= 100); in main() 49 assert(v1.capacity() >= 200); in main() 51 assert(v2.capacity() >= 100); in main() 71 assert(v1.capacity() >= 200); in main() 73 assert(v2.capacity() >= 100); in main() 81 assert(v1.capacity() >= 200); in main() 83 assert(v2.capacity() >= 100); in main()
|
D | resize_size.pass.cpp | 26 assert(v.capacity() >= 100); in main() 29 assert(v.capacity() >= 200); in main() 36 assert(v.capacity() >= 100); in main() 39 assert(v.capacity() >= 200); in main()
|
D | resize_size_value.pass.cpp | 26 assert(v.capacity() >= 100); in main() 30 assert(v.capacity() >= 200); in main() 41 assert(v.capacity() >= 100); in main() 45 assert(v.capacity() >= 200); in main()
|
D | shrink_to_fit.pass.cpp | 26 assert(v.capacity() >= 101); in main() 34 assert(v.capacity() >= 101); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.capacity/ |
D | reserve.pass.cpp | 24 typename S::size_type old_cap = s.capacity(); in test() 29 assert(s.capacity() <= old_cap); in test() 30 assert(s.capacity() >= s.size()); in test() 37 typename S::size_type old_cap = s.capacity(); in test() 44 assert(s.capacity() >= res_arg); in test() 45 assert(s.capacity() >= s.size()); in test()
|
D | capacity.pass.cpp | 27 while (s.size() < s.capacity()) in test() 29 assert(s.size() == s.capacity()); in test() 55 assert(s.capacity() > 0); in main()
|
D | shrink_to_fit.pass.cpp | 23 typename S::size_type old_cap = s.capacity(); in test() 28 assert(s.capacity() <= old_cap); in test() 29 assert(s.capacity() >= s.size()); in test()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.cons/ |
D | alloc.pass.cpp | 29 assert(s.capacity() >= s.size()); in test() 37 assert(s.capacity() >= s.size()); in test() 53 assert(s.capacity() >= s.size()); in test2() 61 assert(s.capacity() >= s.size()); in test2()
|
D | size_char_alloc.pass.cpp | 35 assert(s2.capacity() >= s2.size()); in test() 50 assert(s2.capacity() >= s2.size()); in test() 67 assert(s2.capacity() >= s2.size()); in test() 83 assert(s2.capacity() >= s2.size()); in test()
|
D | pointer_size_alloc.pass.cpp | 34 assert(s2.capacity() >= s2.size()); in test() 48 assert(s2.capacity() >= s2.size()); in test()
|
D | pointer_alloc.pass.cpp | 35 assert(s2.capacity() >= s2.size()); in test() 50 assert(s2.capacity() >= s2.size()); in test()
|
D | char_assignment.pass.cpp | 28 assert(s1.capacity() >= s1.size()); in test()
|
/ndk/sources/cxx-stl/stlport/stlport/stl/debug/ |
D | _string.h | 76 if (this->capacity() > __old_capacity) { in _Compare_Capacity() 199 if (__n > capacity()) in resize() 206 size_type capacity() const { return _M_non_dbg_impl.capacity(); } in capacity() function 209 if (__s > capacity()) _Invalidate_all(); 246 size_type __old_capacity = capacity(); in append() 258 size_type __old_capacity = capacity(); in append() 266 size_type __old_capacity = capacity(); in append() 274 size_type __old_capacity = capacity(); in append() 281 size_type __old_capacity = capacity(); in append() 290 size_type __old_capacity = capacity(); in append() [all …]
|
D | _vector.h | 132 if (size() + __nb > capacity()) 136 if (capacity() > __old_capacity) { 158 size_type capacity() const { return _M_non_dbg_impl.capacity(); } 243 if (capacity() < __n) 295 size_type __old_capacity = capacity(); 306 size_type __old_capacity = capacity(); 319 size_type __old_capacity = capacity(); 329 size_type __old_capacity = capacity(); 363 if (__new_size > capacity()) {
|
/ndk/tests/device/test-gnustl-full/unit/ |
D | vector_test.cpp | 30 CPPUNIT_TEST(capacity); 53 void capacity(); 90 CPPUNIT_ASSERT( (*it).capacity() == 0 ); in vec_test_1() 110 size_t v1Cap = v1.capacity(); in vec_test_2() 111 size_t v2Cap = v2.capacity(); in vec_test_2() 116 CPPUNIT_ASSERT( v1.capacity() == v2Cap ); in vec_test_2() 120 CPPUNIT_ASSERT( v2.capacity() == v1Cap ); in vec_test_2() 293 void VectorTest::capacity() in capacity() function in VectorTest 298 CPPUNIT_ASSERT( v.capacity() == 0 ); in capacity() 300 CPPUNIT_ASSERT( v.capacity() >= 1 ); in capacity() [all …]
|
/ndk/tests/device/test-stlport/unit/ |
D | vector_test.cpp | 30 CPPUNIT_TEST(capacity); 53 void capacity(); 90 CPPUNIT_ASSERT( (*it).capacity() == 0 ); in vec_test_1() 110 size_t v1Cap = v1.capacity(); in vec_test_2() 111 size_t v2Cap = v2.capacity(); in vec_test_2() 116 CPPUNIT_ASSERT( v1.capacity() == v2Cap ); in vec_test_2() 120 CPPUNIT_ASSERT( v2.capacity() == v1Cap ); in vec_test_2() 293 void VectorTest::capacity() in capacity() function in VectorTest 298 CPPUNIT_ASSERT( v.capacity() == 0 ); in capacity() 300 CPPUNIT_ASSERT( v.capacity() >= 1 ); in capacity() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support/ |
D | asan_testing.h | 24 c.data(), c.data() + c.size(), c.data() + c.capacity()) != 0; in is_contiguous_container_asan_correct()
|