/ndk/sources/cxx-stl/llvm-libc++/test/containers/sequences/vector/vector.capacity/ |
D | reserve.pass.cpp | 23 assert(v.capacity() >= 10); in main() 27 assert(v.capacity() == 100); in main() 30 assert(v.capacity() == 100); in main() 33 assert(v.capacity() == 150); in main() 37 assert(v.capacity() == 100); in main() 40 assert(v.capacity() == 100); in main() 43 assert(v.capacity() == 150); in main()
|
D | resize_size.pass.cpp | 26 assert(v.capacity() == 100); in main() 29 assert(v.capacity() >= 200); in main() 35 assert(v.capacity() == 100); in main() 38 assert(v.capacity() >= 200); in main() 45 assert(v.capacity() == 100); in main() 48 assert(v.capacity() >= 200); in main() 54 assert(v.capacity() == 100); in main() 57 assert(v.capacity() >= 200); in main()
|
D | resize_size_value.pass.cpp | 24 assert(v.capacity() == 100); in main() 28 assert(v.capacity() >= 200); in main() 38 assert(v.capacity() == 100); in main() 41 assert(v.capacity() >= 200); in main()
|
D | capacity.pass.cpp | 21 assert(v.capacity() == 0); in main() 25 assert(v.capacity() == 100); in main() 27 assert(v.capacity() > 101); in main()
|
D | shrink_to_fit.pass.cpp | 24 assert(v.capacity() == 101); in main() 31 assert(v.capacity() == 101); in main() 38 assert(v.capacity() == 200); in main()
|
D | swap.pass.cpp | 24 assert(v1.capacity() == 200); in main() 26 assert(v2.capacity() == 100); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/test/containers/sequences/vector.bool/ |
D | swap.pass.cpp | 26 assert(v1.capacity() >= 200); in main() 28 assert(v2.capacity() >= 100); in main() 36 assert(v1.capacity() >= 200); in main() 38 assert(v2.capacity() >= 100); in main() 48 assert(v1.capacity() >= 200); in main() 50 assert(v2.capacity() >= 100); in main()
|
D | reserve.pass.cpp | 23 assert(v.capacity() >= 10); in main() 27 assert(v.capacity() >= 100); in main() 30 assert(v.capacity() >= 100); in main() 33 assert(v.capacity() >= 150); in main()
|
D | capacity.pass.cpp | 22 assert(v.capacity() == 0); in main() 26 assert(v.capacity() >= 100); in main() 28 assert(v.capacity() >= 101); in main()
|
D | resize_size.pass.cpp | 24 assert(v.capacity() >= 100); in main() 27 assert(v.capacity() >= 200); in main()
|
D | resize_size_value.pass.cpp | 24 assert(v.capacity() >= 100); in main() 28 assert(v.capacity() >= 200); in main()
|
D | shrink_to_fit.pass.cpp | 24 assert(v.capacity() >= 101); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/test/strings/basic.string/string.capacity/ |
D | reserve.pass.cpp | 22 typename S::size_type old_cap = s.capacity(); in test() 27 assert(s.capacity() <= old_cap); in test() 28 assert(s.capacity() >= s.size()); in test() 35 typename S::size_type old_cap = s.capacity(); in test() 42 assert(s.capacity() >= res_arg); in test() 43 assert(s.capacity() >= s.size()); in test()
|
D | shrink_to_fit.pass.cpp | 21 typename S::size_type old_cap = s.capacity(); in test() 26 assert(s.capacity() <= old_cap); in test() 27 assert(s.capacity() >= s.size()); in test()
|
D | capacity.pass.cpp | 26 while (s.size() < s.capacity()) in test() 28 assert(s.size() == s.capacity()); in test()
|
/ndk/sources/cxx-stl/llvm-libc++/src/ |
D | string.cpp | 372 s.resize(s.capacity()); in to_string() 389 s.resize(s.capacity()); in to_string() 406 s.resize(s.capacity()); in to_string() 423 s.resize(s.capacity()); in to_string() 440 s.resize(s.capacity()); in to_string() 457 s.resize(s.capacity()); in to_string() 474 s.resize(s.capacity()); in to_string() 491 s.resize(s.capacity()); in to_string() 508 s.resize(s.capacity()); in to_string() 528 s.resize(s.capacity()); in to_wstring() [all …]
|
/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++/test/strings/basic.string/string.cons/ |
D | alloc.pass.cpp | 28 assert(s.capacity() >= s.size()); in test() 36 assert(s.capacity() >= s.size()); in test()
|
D | size_char_alloc.pass.cpp | 34 assert(s2.capacity() >= s2.size()); in test() 50 assert(s2.capacity() >= s2.size()); in test() 67 assert(s2.capacity() >= s2.size()); in test() 84 assert(s2.capacity() >= s2.size()); in test()
|
D | pointer_size_alloc.pass.cpp | 33 assert(s2.capacity() >= s2.size()); in test() 48 assert(s2.capacity() >= s2.size()); in test()
|
D | pointer_alloc.pass.cpp | 34 assert(s2.capacity() >= s2.size()); in test() 50 assert(s2.capacity() >= s2.size()); in test()
|
D | substr.pass.cpp | 38 assert(s2.capacity() >= s2.size()); in test() 61 assert(s2.capacity() >= s2.size()); in test() 84 assert(s2.capacity() >= s2.size()); in test()
|