| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/vector/vector.capacity/ |
| H A D | reserve.pass.cpp | 25 assert(v.capacity() >= 10); in tests() 30 assert(v.capacity() == 100); in tests() 33 assert(v.capacity() == 100); in tests() 36 assert(v.capacity() == 150); in tests() 42 assert(v.capacity() == 100); in tests() 45 assert(v.capacity() == 100); in tests() 48 assert(v.capacity() == 150); in tests() 88 assert(v.capacity() >= 10); in tests() 93 assert(v.capacity() == 100); in tests() 107 assert(v.capacity() == 50); in tests() [all …]
|
| H A D | resize_size.pass.cpp | 27 assert(v.capacity() == 100); in tests() 31 assert(v.capacity() >= 200); in tests() 39 assert(v.capacity() == 100); in tests() 43 assert(v.capacity() >= 200); in tests() 51 assert(v.capacity() == 100); in tests() 55 assert(v.capacity() >= 200); in tests() 63 assert(v.capacity() == 100); in tests() 67 assert(v.capacity() >= 200); in tests() 74 assert(v.capacity() == 100); in tests() 78 assert(v.capacity() >= 200); in tests()
|
| H A D | resize_size_value.pass.cpp | 25 assert(v.capacity() == 100); in tests() 29 assert(v.capacity() >= 200); in tests() 41 assert(v.capacity() == 100); in tests() 44 assert(v.capacity() >= 200); in tests() 52 assert(v.capacity() == 100); in tests() 57 assert(v.capacity() >= 200); in tests() 68 assert(v.capacity() == 100); in tests() 72 assert(v.capacity() >= 200); in tests()
|
| H A D | capacity.pass.cpp | 24 assert(v.capacity() == 0); in tests() 29 assert(v.capacity() == 100); in tests() 31 assert(v.capacity() > 101); in tests() 37 assert(v.capacity() == 0); in tests() 42 assert(v.capacity() == 100); in tests() 44 assert(v.capacity() > 101); in tests()
|
| H A D | swap.pass.cpp | 28 assert(v1.capacity() == 200); in tests() 31 assert(v2.capacity() == 100); in tests() 42 assert(v1.capacity() == 200); in tests() 45 assert(v2.capacity() == 100); in tests()
|
| H A D | shrink_to_fit.pass.cpp | 26 assert(v.capacity() == 101); in tests() 35 assert(v.capacity() == 101); in tests() 45 LIBCPP_ASSERT(v.capacity() == 200); // assumes libc++'s 2x growth factor in tests() 56 assert(v.capacity() == 101); in tests()
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/vector.bool/ |
| H A D | reserve.pass.cpp | 27 assert(v.capacity() >= 10); in tests() 31 assert(v.capacity() >= 100); in tests() 34 assert(v.capacity() >= 100); in tests() 37 assert(v.capacity() >= 150); in tests() 43 assert(v.capacity() >= 10); in tests() 48 assert(v.capacity() >= 10); in tests() 52 assert(v.capacity() >= 100); in tests() 55 assert(v.capacity() >= 100); in tests() 58 assert(v.capacity() >= 150); in tests() 75 assert(v.capacity() >= 5); in tests()
|
| H A D | swap.pass.cpp | 27 assert(v1.capacity() >= 200); in tests() 29 assert(v2.capacity() >= 100); in tests() 37 assert(v1.capacity() >= 200); in tests() 39 assert(v2.capacity() >= 100); in tests() 49 assert(v1.capacity() >= 200); in tests() 51 assert(v2.capacity() >= 100); in tests() 71 assert(v1.capacity() >= 200); in tests() 73 assert(v2.capacity() >= 100); in tests() 81 assert(v1.capacity() >= 200); in tests() 83 assert(v2.capacity() >= 100); in tests()
|
| H A D | resize_size.pass.cpp | 26 assert(v.capacity() >= 100); in tests() 29 assert(v.capacity() >= 200); in tests() 33 assert(v.capacity() >= 400); in tests() 40 assert(v.capacity() >= 10); in tests() 46 assert(v.capacity() >= 100); in tests() 49 assert(v.capacity() >= 200); in tests() 53 assert(v.capacity() >= 400); in tests()
|
| H A D | capacity.pass.cpp | 24 assert(v.capacity() == 0); in tests() 28 assert(v.capacity() >= 100); in tests() 30 assert(v.capacity() >= 101); in tests() 35 assert(v.capacity() == 0); in tests() 39 assert(v.capacity() >= 100); in tests() 41 assert(v.capacity() >= 101); in tests()
|
| H A D | resize_size_value.pass.cpp | 26 assert(v.capacity() >= 100); in tests() 30 assert(v.capacity() >= 200); in tests() 41 assert(v.capacity() >= 100); in tests() 45 assert(v.capacity() >= 200); in tests()
|
| /llvm-project-15.0.7/libcxx/test/libcxx/strings/basic.string/string.capacity/ |
| H A D | PR53170.pass.cpp | 40 typename S::size_type old_cap = s.capacity(); in test() 42 assert(s.capacity() == old_cap); in test() 45 assert(s.capacity() < old_cap); in test() 51 typename S::size_type old_cap = s.capacity(); in test() 53 assert(s.capacity() == old_cap); in test() 56 assert(s.capacity() == old_cap); in test() 62 typename S::size_type old_cap = s.capacity(); in test() 64 assert(s.capacity() == old_cap); in test() 67 assert(s.capacity() == old_cap); in test()
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/ |
| H A D | contiguous_container.cpp | 11 void TestContainer(size_t capacity) { in TestContainer() argument 12 char *beg = new char[capacity]; in TestContainer() 13 char *end = beg + capacity; in TestContainer() 14 char *mid = beg + capacity; in TestContainer() 18 size_t size = rand() % (capacity + 1); in TestContainer() 19 assert(size <= capacity); in TestContainer() 26 for (size_t idx = size; idx < capacity; idx++) in TestContainer() 45 for (size_t idx = 0; idx < capacity; idx++) in TestContainer()
|
| /llvm-project-15.0.7/llvm/unittests/DebugInfo/PDB/ |
| H A D | HashTableTest.cpp | 48 EXPECT_GT(Table.capacity(), 0u); in TEST() 60 EXPECT_GT(Table.capacity(), 0u); in TEST() 65 uint32_t N1 = Table.capacity() + 1; in TEST() 82 EXPECT_GT(Table.capacity(), 0u); in TEST() 98 EXPECT_GT(Table.capacity(), 0u); in TEST() 103 uint32_t N1 = Table.capacity() + 1; in TEST() 128 uint32_t OldCapacity = Table.capacity(); in TEST() 143 uint32_t Cap = Table.capacity(); in TEST() 162 EXPECT_EQ(Table.capacity(), Table2.capacity()); in TEST() 244 uint32_t Cap = Table.capacity(); in TEST() [all …]
|
| /llvm-project-15.0.7/libcxx/test/libcxx/containers/sequences/vector/ |
| H A D | exception_safety_exceptions_disabled.pass.cpp | 44 size_t old_cap = v.capacity(); in main() 45 for (size_t i = 0; i < v.capacity(); ++i) { in main() 48 assert(v.capacity() == old_cap); in main() 49 assert(v.size() == v.capacity()); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.capacity/ |
| H A D | reserve_size.pass.cpp | 31 assert(s.capacity() >= min_cap); // Check that we really have at least this capacity. in test() 34 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() 45 assert(s.capacity() >= old_cap); // reserve never shrinks as of P0966 (C++20) in test()
|
| H A D | reserve.pass.cpp | 29 assert(s.capacity() >= min_cap); // Check that we really have at least this capacity. in test() 31 typename S::size_type old_cap = s.capacity(); in test() 36 assert(s.capacity() <= old_cap); in test() 37 assert(s.capacity() >= s.size()); in test()
|
| H A 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()
|
| H A D | capacity.pass.cpp | 30 while (s.size() < s.capacity()) in test() 32 assert(s.size() == s.capacity()); in test() 60 assert(s.capacity() > 0); in test()
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/PDB/Native/ |
| H A D | HashTable.h | 183 H.Capacity = capacity(); in commit() 209 uint32_t capacity() const { return Buckets.size(); } in capacity() function 219 uint32_t H = Traits.hashLookupKey(K) % capacity(); in find_as() 237 I = (I + 1) % capacity(); in find_as() 298 static uint32_t maxLoad(uint32_t capacity) { return capacity * 2 / 3 + 1; } in maxLoad() argument 303 uint32_t MaxLoad = maxLoad(capacity()); in grow() 304 if (S < maxLoad(capacity())) in grow() 306 assert(capacity() != UINT32_MAX && "Can't grow Hash table!"); in grow() 308 uint32_t NewCapacity = (capacity() <= INT32_MAX) ? MaxLoad * 2 : UINT32_MAX; in grow() 323 assert(capacity() == NewCapacity); in grow()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | vector.h | 25 if (InitialCapacity > capacity()) 41 DCHECK_LE(Size, capacity()); in push_back() 42 if (Size == capacity()) { in push_back() 59 constexpr uptr capacity() const { return CapacityBytes / sizeof(T); } in capacity() function 62 if (NewSize > capacity()) in reserve()
|
| /llvm-project-15.0.7/libc/test/src/__support/CPP/ |
| H A D | vector_test.cpp | 23 ASSERT_GE(vec.capacity(), vec.size()); in TEST() 32 size_t prev_capacity = vec.capacity(); in TEST() 36 ASSERT_GT(vec.capacity(), prev_capacity * 2); in TEST()
|
| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.cons/ |
| H A D | alloc.pass.cpp | 34 assert(s.capacity() >= s.size()); in test() 47 assert(s.capacity() >= s.size()); in test() 68 assert(s.capacity() >= s.size()); in test2() 81 assert(s.capacity() >= s.size()); in test2()
|
| /llvm-project-15.0.7/flang/include/flang/Parser/ |
| H A D | char-buffer.h | 61 static constexpr std::size_t capacity{1 << 20}; 62 char data[capacity]; 65 int LastBlockOffset() const { return bytes_ % Block::capacity; } in LastBlockOffset()
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/vector/vector.modifiers/ |
| H A D | emplace_extra.pass.cpp | 62 size_t old_capacity = v.capacity(); in tests() 66 assert(v.capacity() == old_capacity); in tests() 70 assert(v.capacity() == old_capacity); in tests()
|