Skip to content

Commit b381bd7

Browse files
committed
rebase
1 parent ea7603b commit b381bd7

File tree

7 files changed

+7
-56
lines changed

7 files changed

+7
-56
lines changed

libcxx/include/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,6 @@ set(files
358358
__filesystem/recursive_directory_iterator.h
359359
__filesystem/space_info.h
360360
__filesystem/u8path.h
361-
__flat_map/container_traits.h
362361
__flat_map/flat_map.h
363362
__flat_map/sorted_unique.h
364363
__format/buffer.h

libcxx/include/__flat_map/container_traits.h

Lines changed: 0 additions & 46 deletions
This file was deleted.

libcxx/include/__flat_map/flat_map.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <__concepts/convertible_to.h>
2424
#include <__concepts/swappable.h>
2525
#include <__config>
26-
#include <__flat_map/container_traits.h>
2726
#include <__flat_map/sorted_unique.h>
2827
#include <__functional/invoke.h>
2928
#include <__functional/is_transparent.h>
@@ -43,6 +42,7 @@
4342
#include <__ranges/subrange.h>
4443
#include <__ranges/zip_view.h>
4544
#include <__type_traits/conjunction.h>
45+
#include <__type_traits/container_traits.h>
4646
#include <__type_traits/invoke.h>
4747
#include <__type_traits/is_allocator.h>
4848
#include <__type_traits/is_nothrow_constructible.h>

libcxx/include/deque

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ template <class T, class Allocator, class Predicate>
194194
#include <__assert>
195195
#include <__config>
196196
#include <__debug_utils/sanitizers.h>
197-
#include <__flat_map/container_traits.h>
198197
#include <__format/enable_insertable.h>
199198
#include <__fwd/deque.h>
200199
#include <__iterator/distance.h>

libcxx/include/flat_map

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ namespace std {
3939

4040
#include <__assert> // all public C++ headers provide the assertion handler
4141
#include <__config>
42-
#include <__flat_map/container_traits.h>
4342
#include <__flat_map/flat_map.h>
4443
#include <__flat_map/sorted_unique.h>
4544
#include <version>

libcxx/include/module.modulemap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ module std [system] {
12261226
module flat_map { header "__flat_map/flat_map.h" }
12271227
module sorted_unique { header "__flat_map/sorted_unique.h" }
12281228

1229-
head "flat_map"
1229+
header "flat_map"
12301230
export *
12311231
}
12321232

libcxx/test/std/containers/container.adaptors/flat.map/flat.map.cons/move.pass.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ int main(int, char**) {
3939

4040
assert(mo.empty());
4141
assert(mo.key_comp() == C(5));
42-
assert(mo.keys().get_allocator() == A(test_alloc_base::moved_value));
43-
assert(mo.values().get_allocator() == A(test_alloc_base::moved_value));
42+
assert(mo.keys().get_allocator().get_id() == test_alloc_base::moved_value);
43+
assert(mo.values().get_allocator().get_id() == test_alloc_base::moved_value);
4444
}
4545
{
4646
using C = test_less<int>;
@@ -76,9 +76,9 @@ int main(int, char**) {
7676
{
7777
// moved-from object maintains invariant if one of underlying container does not clear after move
7878
using M = std::flat_map<int, int, std::less<>, std::vector<int>, CopyOnlyVector<int>>;
79-
M m1 = M({1,2,3},{1,2,3});
80-
M m2 = std::move(m1);
81-
assert(m2.size()==3);
79+
M m1 = M({1, 2, 3}, {1, 2, 3});
80+
M m2 = std::move(m1);
81+
assert(m2.size() == 3);
8282
assert(m1.keys().size() == m1.values().size());
8383
LIBCPP_ASSERT(m1.empty());
8484
LIBCPP_ASSERT(m1.keys().size() == 0);

0 commit comments

Comments
 (0)