Skip to content

Commit 90a5d2d

Browse files
Hui Xiehuixie90
authored andcommitted
[libc++] implement std::flat_multimap
1 parent b068f2f commit 90a5d2d

File tree

95 files changed

+10097
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+10097
-6
lines changed

libcxx/docs/FeatureTestMacroTable.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,10 @@ Status
330330
---------------------------------------------------------- -----------------
331331
``__cpp_lib_expected`` ``202211L``
332332
---------------------------------------------------------- -----------------
333+
``__cpp_lib_flat_map`` ``202207L``
334+
---------------------------------------------------------- -----------------
335+
``__cpp_lib_flat_set`` *unimplemented*
336+
---------------------------------------------------------- -----------------
333337
``__cpp_lib_format_ranges`` ``202207L``
334338
---------------------------------------------------------- -----------------
335339
``__cpp_lib_formatters`` *unimplemented*

libcxx/docs/Status/Cxx23Papers.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"`P2443R1 <https://wg21.link/P2443R1>`__","``views::chunk_by``","2022-02 (Virtual)","|Complete|","18",""
5353
"","","","","",""
5454
"`P0009R18 <https://wg21.link/P0009R18>`__","mdspan: A Non-Owning Multidimensional Array Reference","2022-07 (Virtual)","|Complete|","18",""
55-
"`P0429R9 <https://wg21.link/P0429R9>`__","A Standard ``flat_map``","2022-07 (Virtual)","|In Progress|","",""
55+
"`P0429R9 <https://wg21.link/P0429R9>`__","A Standard ``flat_map``","2022-07 (Virtual)","|Complete|","",""
5656
"`P1169R4 <https://wg21.link/P1169R4>`__","``static operator()``","2022-07 (Virtual)","|Complete|","16",""
5757
"`P1222R4 <https://wg21.link/P1222R4>`__","A Standard ``flat_set``","2022-07 (Virtual)","","",""
5858
"`P1223R5 <https://wg21.link/P1223R5>`__","``ranges::find_last()``, ``ranges::find_last_if()``, and ``ranges::find_last_if_not()``","2022-07 (Virtual)","|Complete|","19",""

libcxx/include/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,10 @@ set(files
361361
__filesystem/space_info.h
362362
__filesystem/u8path.h
363363
__flat_map/flat_map.h
364+
__flat_map/flat_multimap.h
364365
__flat_map/key_value_iterator.h
365366
__flat_map/sorted_unique.h
367+
__flat_map/sorted_equivalent.h
366368
__format/buffer.h
367369
__format/concepts.h
368370
__format/container_adaptor.h

libcxx/include/__flat_map/flat_map.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ template <ranges::input_range _Range,
11881188
class _Allocator = allocator<byte>,
11891189
class = __enable_if_t<!__is_allocator<_Compare>::value && __is_allocator<_Allocator>::value>>
11901190
flat_map(from_range_t, _Range&&, _Compare = _Compare(), _Allocator = _Allocator())
1191-
-> flat_map<
1191+
->flat_map<
11921192
__range_key_type<_Range>,
11931193
__range_mapped_type<_Range>,
11941194
_Compare,
@@ -1197,7 +1197,7 @@ flat_map(from_range_t, _Range&&, _Compare = _Compare(), _Allocator = _Allocator(
11971197

11981198
template <ranges::input_range _Range, class _Allocator, class = __enable_if_t<__is_allocator<_Allocator>::value>>
11991199
flat_map(from_range_t, _Range&&, _Allocator)
1200-
-> flat_map<
1200+
->flat_map<
12011201
__range_key_type<_Range>,
12021202
__range_mapped_type<_Range>,
12031203
less<__range_key_type<_Range>>,

0 commit comments

Comments
 (0)