Skip to content

Commit 45de5a0

Browse files
committed
comments
1 parent 001b381 commit 45de5a0

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

libcxx/test/std/containers/container.adaptors/flat.multimap/flat.multimap.capacity/size.pass.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
10+
// ADDITIONAL_COMPILE_FLAGS(has-fconstexpr-steps): -fconstexpr-steps=200000000
1011

1112
// <flat_map>
1213

@@ -47,7 +48,7 @@ constexpr void test() {
4748
}
4849
{
4950
M m;
50-
std::size_t s = TEST_IS_CONSTANT_EVALUATED ? 100 : 1000;
51+
std::size_t s = 1000;
5152
for (auto i = 0u; i < s; ++i) {
5253
m.emplace(i, 'a');
5354
}

libcxx/test/std/containers/container.adaptors/flat.multimap/flat.multimap.cons/move_assign_clears.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// flat_multimap& operator=(flat_multimap&&);
1414
// Preserves the class invariant for the moved-from flat_multimap.
1515

16-
#include <__flat_map/sorted_equivalent.h>
1716
#include <algorithm>
1817
#include <cassert>
1918
#include <compare>

libcxx/test/std/containers/container.adaptors/flat.multimap/flat.multimap.cons/sorted_container.pass.cpp

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,17 @@
1010

1111
// <flat_map>
1212

13-
// flat_multimap(sorted_unique_t, key_container_type key_cont, mapped_container_type mapped_cont,
13+
// flat_multimap(sorted_equivalent_t, key_container_type key_cont, mapped_container_type mapped_cont,
1414
// const key_compare& comp = key_compare());
1515
//
1616
// template<class Alloc>
17-
// flat_multimap(sorted_unique_t, const key_container_type& key_cont,
17+
// flat_multimap(sorted_equivalent_t, const key_container_type& key_cont,
1818
// const mapped_container_type& mapped_cont, const Alloc& a);
1919
// template<class Alloc>
20-
// flat_multimap(sorted_unique_t, const key_container_type& key_cont,
20+
// flat_multimap(sorted_equivalent_t, const key_container_type& key_cont,
2121
// const mapped_container_type& mapped_cont,
2222
// const key_compare& comp, const Alloc& a);
2323

24-
#include <__flat_map/sorted_equivalent.h>
2524
#include <algorithm>
2625
#include <deque>
2726
#include <flat_map>
@@ -39,7 +38,7 @@
3938
template <template <class...> class KeyContainer, template <class...> class ValueContainer>
4039
constexpr void test() {
4140
{
42-
// flat_multimap(sorted_unique_t, key_container_type , mapped_container_type)
41+
// flat_multimap(sorted_equivalent_t, key_container_type , mapped_container_type)
4342
using M = std::flat_multimap<int, char, std::less<int>, KeyContainer<int>, ValueContainer<char>>;
4443
KeyContainer<int> ks = {1, 4, 4, 10};
4544
ValueContainer<char> vs = {4, 3, 2, 1};
@@ -58,7 +57,7 @@ constexpr void test() {
5857
assert(m == m2);
5958
}
6059
{
61-
// flat_multimap(sorted_unique_t, key_container_type , mapped_container_type)
60+
// flat_multimap(sorted_equivalent_t, key_container_type , mapped_container_type)
6261
// non-default container, comparator and allocator type
6362
using Ks = KeyContainer<int, min_allocator<int>>;
6463
using Vs = ValueContainer<char, min_allocator<char>>;
@@ -73,7 +72,7 @@ constexpr void test() {
7372
assert(std::ranges::equal(m, std::vector<std::pair<int, char>>{{10, 1}, {4, 2}, {4, 3}, {1, 4}}));
7473
}
7574
{
76-
// flat_multimap(sorted_unique_t, key_container_type , mapped_container_type)
75+
// flat_multimap(sorted_equivalent_t, key_container_type , mapped_container_type)
7776
// allocator copied into the containers
7877
using A = test_allocator<int>;
7978
using M = std::flat_multimap<int, int, std::less<int>, KeyContainer<int, A>, ValueContainer<int, A>>;
@@ -87,7 +86,7 @@ constexpr void test() {
8786
assert(m.values().get_allocator() == A(5));
8887
}
8988
{
90-
// flat_multimap(sorted_unique_t, key_container_type , mapped_container_type, key_compare)
89+
// flat_multimap(sorted_equivalent_t, key_container_type , mapped_container_type, key_compare)
9190
using C = test_less<int>;
9291
using M = std::flat_multimap<int, char, C, KeyContainer<int>, ValueContainer<char>>;
9392
KeyContainer<int> ks = {1, 4, 4, 10};
@@ -103,7 +102,7 @@ constexpr void test() {
103102
assert(m2.key_comp() == C(4));
104103
}
105104
{
106-
// flat_multimap(sorted_unique_t, key_container_type , mapped_container_type, key_compare, const Allocator&)
105+
// flat_multimap(sorted_equivalent_t, key_container_type , mapped_container_type, key_compare, const Allocator&)
107106
using C = test_less<int>;
108107
using A = test_allocator<int>;
109108
using M = std::flat_multimap<int, int, C, KeyContainer<int, A>, ValueContainer<int, A>>;
@@ -123,7 +122,7 @@ constexpr void test() {
123122
assert(m2.values().get_allocator() == A(5));
124123
}
125124
{
126-
// flat_multimap(sorted_unique_t, key_container_type , mapped_container_type, const Allocator&)
125+
// flat_multimap(sorted_equivalent_t, key_container_type , mapped_container_type, const Allocator&)
127126
using A = test_allocator<int>;
128127
using M = std::flat_multimap<int, int, std::less<int>, KeyContainer<int, A>, ValueContainer<int, A>>;
129128
auto ks = KeyContainer<int, A>({1, 4, 4, 10}, A(4));

libcxx/test/std/containers/container.adaptors/flat.multimap/flat.multimap.modifiers/insert_transparent.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
// template<class K> iterator insert(P&& x);
1616
// template<class K> iterator insert(const_iterator hint, P&& x);
1717

18-
#include <__flat_map/sorted_equivalent.h>
1918
#include <algorithm>
2019
#include <compare>
2120
#include <concepts>

0 commit comments

Comments
 (0)