Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 25 of 104) sorted by relevance

12345

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.capacity/
Dreserve.pass.cpp25 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 …]
Dresize_size.pass.cpp28 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()
Dcapacity.pass.cpp24 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()
Dresize_size_value.pass.cpp26 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()
Dswap.pass.cpp29 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()
Dshrink_to_fit.pass.cpp27 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/
Dreserve.pass.cpp25 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()
Dcapacity.pass.cpp24 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()
Dswap.pass.cpp27 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()
Dresize_size.pass.cpp26 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()
Dresize_size_value.pass.cpp26 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()
Dshrink_to_fit.pass.cpp26 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/
Dreserve.pass.cpp24 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()
Dcapacity.pass.cpp27 while (s.size() < s.capacity()) in test()
29 assert(s.size() == s.capacity()); in test()
55 assert(s.capacity() > 0); in main()
Dshrink_to_fit.pass.cpp23 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/
Dalloc.pass.cpp29 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()
Dsize_char_alloc.pass.cpp35 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()
Dpointer_size_alloc.pass.cpp34 assert(s2.capacity() >= s2.size()); in test()
48 assert(s2.capacity() >= s2.size()); in test()
Dpointer_alloc.pass.cpp35 assert(s2.capacity() >= s2.size()); in test()
50 assert(s2.capacity() >= s2.size()); in test()
Dchar_assignment.pass.cpp28 assert(s1.capacity() >= s1.size()); in test()
/ndk/sources/cxx-stl/stlport/stlport/stl/debug/
D_string.h76 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.h132 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/
Dvector_test.cpp30 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/
Dvector_test.cpp30 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/
Dasan_testing.h24 c.data(), c.data() + c.size(), c.data() + c.capacity()) != 0; in is_contiguous_container_asan_correct()

12345