Home
last modified time | relevance | path

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

1234

/ndk/sources/cxx-stl/llvm-libc++/test/containers/sequences/vector/vector.capacity/
Dreserve.pass.cpp23 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()
Dresize_size.pass.cpp26 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()
Dresize_size_value.pass.cpp24 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()
Dcapacity.pass.cpp21 assert(v.capacity() == 0); in main()
25 assert(v.capacity() == 100); in main()
27 assert(v.capacity() > 101); in main()
Dshrink_to_fit.pass.cpp24 assert(v.capacity() == 101); in main()
31 assert(v.capacity() == 101); in main()
38 assert(v.capacity() == 200); in main()
Dswap.pass.cpp24 assert(v1.capacity() == 200); in main()
26 assert(v2.capacity() == 100); in main()
/ndk/sources/cxx-stl/llvm-libc++/test/containers/sequences/vector.bool/
Dswap.pass.cpp26 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()
Dreserve.pass.cpp23 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()
Dcapacity.pass.cpp22 assert(v.capacity() == 0); in main()
26 assert(v.capacity() >= 100); in main()
28 assert(v.capacity() >= 101); in main()
Dresize_size.pass.cpp24 assert(v.capacity() >= 100); in main()
27 assert(v.capacity() >= 200); in main()
Dresize_size_value.pass.cpp24 assert(v.capacity() >= 100); in main()
28 assert(v.capacity() >= 200); in main()
Dshrink_to_fit.pass.cpp24 assert(v.capacity() >= 101); in main()
/ndk/sources/cxx-stl/llvm-libc++/test/strings/basic.string/string.capacity/
Dreserve.pass.cpp22 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()
Dshrink_to_fit.pass.cpp21 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()
Dcapacity.pass.cpp26 while (s.size() < s.capacity()) in test()
28 assert(s.size() == s.capacity()); in test()
/ndk/sources/cxx-stl/llvm-libc++/src/
Dstring.cpp372 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.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++/test/strings/basic.string/string.cons/
Dalloc.pass.cpp28 assert(s.capacity() >= s.size()); in test()
36 assert(s.capacity() >= s.size()); in test()
Dsize_char_alloc.pass.cpp34 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()
Dpointer_size_alloc.pass.cpp33 assert(s2.capacity() >= s2.size()); in test()
48 assert(s2.capacity() >= s2.size()); in test()
Dpointer_alloc.pass.cpp34 assert(s2.capacity() >= s2.size()); in test()
50 assert(s2.capacity() >= s2.size()); in test()
Dsubstr.pass.cpp38 assert(s2.capacity() >= s2.size()); in test()
61 assert(s2.capacity() >= s2.size()); in test()
84 assert(s2.capacity() >= s2.size()); in test()

1234