xref: /freebsd/lib/libc++/module.modulemap (revision 00bee6fcd77f7812e967f85d1cacbc349ff312b3)
1// This module contains headers related to the configuration of the library. These headers
2// are free of any dependency on the rest of libc++.
3module std_config [system] {
4   // generated via CMake
5  textual header "__config"
6  textual header "__configuration/abi.h"
7  textual header "__configuration/availability.h"
8  textual header "__configuration/compiler.h"
9  textual header "__configuration/language.h"
10  textual header "__configuration/platform.h"
11  textual header "version"
12}
13
14module std_core [system] {
15  module cstddef {
16    module byte         { header "__cstddef/byte.h" }
17    module max_align_t  {
18      header "__cstddef/max_align_t.h"
19      export *
20    }
21    module nullptr_t    { header "__cstddef/nullptr_t.h" }
22    module ptrdiff_t    { header "__cstddef/ptrdiff_t.h" }
23    module size_t       { header "__cstddef/size_t.h" }
24  }
25
26  module cstdint {
27    header "cstdint"
28    export *
29  }
30
31  module fwd {
32    module byte         { header "__fwd/byte.h" }
33    module functional   { header "__fwd/functional.h" }
34    module pair         { header "__fwd/pair.h" }
35    module tuple        { header "__fwd/tuple.h" }
36  }
37
38  module limits {
39    header "limits"
40    export *
41  }
42
43  module math {
44    module abs                              { header "__math/abs.h" }
45    module copysign                         { header "__math/copysign.h" }
46    module error_functions                  { header "__math/error_functions.h" }
47    module exponential_functions            { header "__math/exponential_functions.h" }
48    module fdim                             { header "__math/fdim.h" }
49    module fma                              { header "__math/fma.h" }
50    module gamma                            { header "__math/gamma.h" }
51    module hyperbolic_functions             { header "__math/hyperbolic_functions.h" }
52    module hypot                            { header "__math/hypot.h" }
53    module inverse_hyperbolic_functions     { header "__math/inverse_hyperbolic_functions.h" }
54    module inverse_trigonometric_functions  { header "__math/inverse_trigonometric_functions.h" }
55    module logarithms                       { header "__math/logarithms.h" }
56    module min_max                          { header "__math/min_max.h" }
57    module modulo                           { header "__math/modulo.h" }
58    module remainder                        { header "__math/remainder.h" }
59    module roots                            { header "__math/roots.h" }
60    module rounding_functions               { header "__math/rounding_functions.h" }
61    module special_functions                { header "__math/special_functions.h" }
62    module traits                           { header "__math/traits.h" }
63    module trigonometric_functions          { header "__math/trigonometric_functions.h" }
64  }
65
66  module type_traits {
67    module add_cv_quals                               { header "__type_traits/add_cv_quals.h" }
68    module add_pointer                                { header "__type_traits/add_pointer.h" }
69    module add_reference                              { header "__type_traits/add_reference.h" }
70    module aligned_storage                            { header "__type_traits/aligned_storage.h" }
71    module aligned_union                              { header "__type_traits/aligned_union.h" }
72    module alignment_of                               { header "__type_traits/alignment_of.h" }
73    module can_extract_key                            { header "__type_traits/can_extract_key.h" }
74    module common_reference                           { header "__type_traits/common_reference.h" }
75    module common_type {
76      header "__type_traits/common_type.h"
77      // We need to export those because common_type inherits from either of those based on __builtin_common_type.
78      export std_core.type_traits.type_identity
79      export std_core.utility_core.empty
80    }
81    module conditional                                { header "__type_traits/conditional.h" }
82    module conjunction                                { header "__type_traits/conjunction.h" }
83    module container_traits                           { header "__type_traits/container_traits.h" }
84    module copy_cv                                    { header "__type_traits/copy_cv.h" }
85    module copy_cvref                                 { header "__type_traits/copy_cvref.h" }
86    module datasizeof                                 { header "__type_traits/datasizeof.h" }
87    module decay                                      { header "__type_traits/decay.h" }
88    module dependent_type                             { header "__type_traits/dependent_type.h" }
89    module desugars_to                                { header "__type_traits/desugars_to.h" }
90    module detected_or                                { header "__type_traits/detected_or.h" }
91    module disjunction                                { header "__type_traits/disjunction.h" }
92    module enable_if                                  { header "__type_traits/enable_if.h" }
93    module extent                                     { header "__type_traits/extent.h" }
94    module has_unique_object_representation           { header "__type_traits/has_unique_object_representation.h" }
95    module has_virtual_destructor                     { header "__type_traits/has_virtual_destructor.h" }
96    module integer_traits                             { header "__type_traits/integer_traits.h" }
97    module integral_constant                          { header "__type_traits/integral_constant.h" }
98    module invoke                                     { header "__type_traits/invoke.h" }
99    module is_abstract {
100      header "__type_traits/is_abstract.h"
101      export std_core.type_traits.integral_constant
102    }
103    module is_aggregate {
104      header "__type_traits/is_aggregate.h"
105      export std_core.type_traits.integral_constant
106    }
107    module is_allocator {
108      header "__type_traits/is_allocator.h"
109      export std_core.type_traits.integral_constant
110    }
111    module is_always_bitcastable {
112      header "__type_traits/is_always_bitcastable.h"
113      export std_core.type_traits.integral_constant
114    }
115    module is_arithmetic {
116      header "__type_traits/is_arithmetic.h"
117      export std_core.type_traits.integral_constant
118    }
119    module is_array {
120      header "__type_traits/is_array.h"
121      export std_core.type_traits.integral_constant
122    }
123    module is_assignable {
124      header "__type_traits/is_assignable.h"
125      export std_core.type_traits.integral_constant
126    }
127    module is_base_of {
128      header "__type_traits/is_base_of.h"
129      export std_core.type_traits.integral_constant
130    }
131    module is_bounded_array {
132      header "__type_traits/is_bounded_array.h"
133      export std_core.type_traits.integral_constant
134    }
135    module is_callable {
136      header "__type_traits/is_callable.h"
137      export std_core.type_traits.integral_constant
138    }
139    module is_char_like_type {
140      header "__type_traits/is_char_like_type.h"
141      export std_core.type_traits.integral_constant
142    }
143    module is_class {
144      header "__type_traits/is_class.h"
145      export std_core.type_traits.integral_constant
146    }
147    module is_compound {
148      header "__type_traits/is_compound.h"
149      export std_core.type_traits.integral_constant
150    }
151    module is_const {
152      header "__type_traits/is_const.h"
153      export std_core.type_traits.integral_constant
154    }
155    module is_constant_evaluated {
156      header "__type_traits/is_constant_evaluated.h"
157      export std_core.type_traits.integral_constant
158    }
159    module is_constructible {
160      header "__type_traits/is_constructible.h"
161      export std_core.type_traits.integral_constant
162    }
163    module is_convertible {
164      header "__type_traits/is_convertible.h"
165      export std_core.type_traits.integral_constant
166    }
167    module is_core_convertible {
168      header "__type_traits/is_core_convertible.h"
169      export std_core.type_traits.integral_constant
170    }
171    module is_destructible {
172      header "__type_traits/is_destructible.h"
173      export std_core.type_traits.integral_constant
174    }
175    module is_empty {
176      header "__type_traits/is_empty.h"
177      export std_core.type_traits.integral_constant
178    }
179    module is_enum {
180      header "__type_traits/is_enum.h"
181      export std_core.type_traits.integral_constant
182    }
183    module is_equality_comparable {
184      header "__type_traits/is_equality_comparable.h"
185      export std_core.type_traits.integral_constant
186    }
187    module is_execution_policy {
188      header "__type_traits/is_execution_policy.h"
189      export std_core.type_traits.integral_constant
190    }
191    module is_final {
192      header "__type_traits/is_final.h"
193      export std_core.type_traits.integral_constant
194    }
195    module is_floating_point {
196      header "__type_traits/is_floating_point.h"
197      export std_core.type_traits.integral_constant
198    }
199    module is_function {
200      header "__type_traits/is_function.h"
201      export std_core.type_traits.integral_constant
202    }
203    module is_fundamental {
204      header "__type_traits/is_fundamental.h"
205      export std_core.type_traits.integral_constant
206    }
207    module is_implicit_lifetime {
208      header "__type_traits/is_implicit_lifetime.h"
209      export std_core.type_traits.integral_constant
210    }
211    module is_implicitly_default_constructible {
212      header "__type_traits/is_implicitly_default_constructible.h"
213      export std_core.type_traits.integral_constant
214    }
215    module is_integral {
216      header "__type_traits/is_integral.h"
217      export std_core.type_traits.integral_constant
218    }
219    module is_literal_type {
220      header "__type_traits/is_literal_type.h"
221      export std_core.type_traits.integral_constant
222    }
223    module is_member_pointer {
224      header "__type_traits/is_member_pointer.h"
225      export std_core.type_traits.integral_constant
226    }
227    module is_nothrow_assignable {
228      header "__type_traits/is_nothrow_assignable.h"
229      export std_core.type_traits.integral_constant
230    }
231    module is_nothrow_constructible {
232      header "__type_traits/is_nothrow_constructible.h"
233      export std_core.type_traits.integral_constant
234    }
235    module is_nothrow_destructible {
236      header "__type_traits/is_nothrow_destructible.h"
237      export std_core.type_traits.integral_constant
238    }
239    module is_null_pointer {
240      header "__type_traits/is_null_pointer.h"
241      export std_core.type_traits.integral_constant
242    }
243    module is_object {
244      header "__type_traits/is_object.h"
245      export std_core.type_traits.integral_constant
246    }
247    module is_pod {
248      header "__type_traits/is_pod.h"
249      export std_core.type_traits.integral_constant
250    }
251    module is_pointer {
252      header "__type_traits/is_pointer.h"
253      export std_core.type_traits.integral_constant
254    }
255    module is_polymorphic {
256      header "__type_traits/is_polymorphic.h"
257      export std_core.type_traits.integral_constant
258    }
259    module is_primary_template {
260      header "__type_traits/is_primary_template.h"
261      export std_core.type_traits.integral_constant
262    }
263    module is_reference_wrapper {
264      header "__type_traits/is_reference_wrapper.h"
265      export std_core.type_traits.integral_constant
266    }
267    module is_reference {
268      header "__type_traits/is_reference.h"
269      export std_core.type_traits.integral_constant
270    }
271    module is_referenceable {
272      header "__type_traits/is_referenceable.h"
273      export std_core.type_traits.integral_constant
274    }
275    module is_replaceable {
276      header "__type_traits/is_replaceable.h"
277      export std_core.type_traits.integral_constant
278    }
279    module is_same {
280      header "__type_traits/is_same.h"
281      export std_core.type_traits.integral_constant
282    }
283    module is_scalar {
284      header "__type_traits/is_scalar.h"
285      export std_core.type_traits.integral_constant
286    }
287    module is_signed {
288      header "__type_traits/is_signed.h"
289      export std_core.type_traits.integral_constant
290    }
291    module is_specialization {
292      header "__type_traits/is_specialization.h"
293      export std_core.type_traits.integral_constant
294    }
295    module is_standard_layout {
296      header "__type_traits/is_standard_layout.h"
297      export std_core.type_traits.integral_constant
298    }
299    module is_swappable {
300      header "__type_traits/is_swappable.h"
301      export std_core.type_traits.integral_constant
302    }
303    module is_trivial {
304      header "__type_traits/is_trivial.h"
305      export std_core.type_traits.integral_constant
306    }
307    module is_trivially_assignable {
308      header "__type_traits/is_trivially_assignable.h"
309      export std_core.type_traits.integral_constant
310    }
311    module is_trivially_constructible {
312      header "__type_traits/is_trivially_constructible.h"
313      export std_core.type_traits.integral_constant
314    }
315    module is_trivially_copyable {
316      header "__type_traits/is_trivially_copyable.h"
317      export std_core.type_traits.integral_constant
318    }
319    module is_trivially_destructible {
320      header "__type_traits/is_trivially_destructible.h"
321      export std_core.type_traits.integral_constant
322    }
323    module is_trivially_lexicographically_comparable {
324      header "__type_traits/is_trivially_lexicographically_comparable.h"
325      export std_core.type_traits.integral_constant
326    }
327    module is_trivially_relocatable {
328      header "__type_traits/is_trivially_relocatable.h"
329      export std_core.type_traits.integral_constant
330    }
331    module is_unbounded_array {
332      header "__type_traits/is_unbounded_array.h"
333      export std_core.type_traits.integral_constant
334    }
335    module is_union {
336      header "__type_traits/is_union.h"
337      export std_core.type_traits.integral_constant
338    }
339    module is_unqualified { header "__type_traits/is_unqualified.h" }
340    module is_unsigned {
341      header "__type_traits/is_unsigned.h"
342      export std_core.type_traits.integral_constant
343    }
344    module is_valid_expansion {
345      header "__type_traits/is_valid_expansion.h"
346      export std_core.type_traits.integral_constant
347    }
348    module is_void {
349      header "__type_traits/is_void.h"
350      export std_core.type_traits.integral_constant
351    }
352    module is_volatile {
353      header "__type_traits/is_volatile.h"
354      export std_core.type_traits.integral_constant
355    }
356    module lazy                                       { header "__type_traits/lazy.h" }
357    module make_32_64_or_128_bit                      { header "__type_traits/make_32_64_or_128_bit.h" }
358    module make_const_lvalue_ref                      { header "__type_traits/make_const_lvalue_ref.h" }
359    module make_signed                                { header "__type_traits/make_signed.h" }
360    module make_unsigned                              { header "__type_traits/make_unsigned.h" }
361    module maybe_const                                { header "__type_traits/maybe_const.h" }
362    module nat                                        { header "__type_traits/nat.h" }
363    module negation                                   { header "__type_traits/negation.h" }
364    module promote                                    { header "__type_traits/promote.h" }
365    module rank                                       { header "__type_traits/rank.h" }
366    module reference_constructs_from_temporary {
367      header "__type_traits/reference_constructs_from_temporary.h"
368      export std_core.type_traits.integral_constant
369    }
370    module reference_converts_from_temporary {
371      header "__type_traits/reference_converts_from_temporary.h"
372      export std_core.type_traits.integral_constant
373    }
374    module remove_all_extents                         { header "__type_traits/remove_all_extents.h" }
375    module remove_const_ref                           { header "__type_traits/remove_const_ref.h" }
376    module remove_const                               { header "__type_traits/remove_const.h" }
377    module remove_cv                                  { header "__type_traits/remove_cv.h" }
378    module remove_cvref                               { header "__type_traits/remove_cvref.h" }
379    module remove_extent                              { header "__type_traits/remove_extent.h" }
380    module remove_pointer                             { header "__type_traits/remove_pointer.h" }
381    module remove_reference                           { header "__type_traits/remove_reference.h" }
382    module remove_volatile                            { header "__type_traits/remove_volatile.h" }
383    module result_of                                  { header "__type_traits/result_of.h" }
384    module strip_signature                            { header "__type_traits/strip_signature.h" }
385    module type_identity                              { header "__type_traits/type_identity.h" }
386    module type_list                                  { header "__type_traits/type_list.h" }
387    module underlying_type                            { header "__type_traits/underlying_type.h" }
388    module unwrap_ref                                 { header "__type_traits/unwrap_ref.h" }
389    module void_t                                     { header "__type_traits/void_t.h" }
390
391    header "type_traits"
392    export *
393  } // module type_traits
394
395  // Only the truly dependency-free parts of __utility are here
396  module utility_core {
397    module declval  { header "__utility/declval.h" }
398    module empty    { header "__utility/empty.h" }
399    module forward  { header "__utility/forward.h" }
400  }
401} // module std_core
402
403module std [system] {
404  module algorithm {
405    module adjacent_find                          { header "__algorithm/adjacent_find.h" }
406    module all_of                                 { header "__algorithm/all_of.h" }
407    module any_of                                 { header "__algorithm/any_of.h" }
408    module binary_search                          { header "__algorithm/binary_search.h" }
409    module clamp                                  { header "__algorithm/clamp.h" }
410    module comp_ref_type                          { header "__algorithm/comp_ref_type.h" }
411    module comp                                   { header "__algorithm/comp.h" }
412    module copy_backward                          { header "__algorithm/copy_backward.h" }
413    module copy_if                                { header "__algorithm/copy_if.h" }
414    module copy_move_common                       { header "__algorithm/copy_move_common.h" }
415    module copy_n                                 {
416      header "__algorithm/copy_n.h"
417      export std.iterator_traits
418    }
419    module copy                                   { header "__algorithm/copy.h" }
420    module count_if                               { header "__algorithm/count_if.h" }
421    module count                                  { header "__algorithm/count.h" }
422    module equal_range                            { header "__algorithm/equal_range.h" }
423    module equal                                  { header "__algorithm/equal.h" }
424    module fill_n                                 { header "__algorithm/fill_n.h" }
425    module fill                                   { header "__algorithm/fill.h" }
426    module find_end                               { header "__algorithm/find_end.h" }
427    module find_first_of                          { header "__algorithm/find_first_of.h" }
428    module find_if_not                            { header "__algorithm/find_if_not.h" }
429    module find_if                                { header "__algorithm/find_if.h" }
430    module find_segment_if                        { header "__algorithm/find_segment_if.h" }
431    module find                                   { header "__algorithm/find.h" }
432    module for_each_n                             { header "__algorithm/for_each_n.h" }
433    module for_each_n_segment                     { header "__algorithm/for_each_n_segment.h" }
434    module for_each_segment                       { header "__algorithm/for_each_segment.h" }
435    module for_each                               { header "__algorithm/for_each.h" }
436    module generate_n                             { header "__algorithm/generate_n.h" }
437    module generate                               { header "__algorithm/generate.h" }
438    module half_positive                          { header "__algorithm/half_positive.h" }
439    module in_found_result                        { header "__algorithm/in_found_result.h" }
440    module in_fun_result                          { header "__algorithm/in_fun_result.h" }
441    module in_in_out_result                       { header "__algorithm/in_in_out_result.h" }
442    module in_in_result                           { header "__algorithm/in_in_result.h" }
443    module in_out_out_result                      { header "__algorithm/in_out_out_result.h" }
444    module in_out_result                          { header "__algorithm/in_out_result.h" }
445    module includes                               { header "__algorithm/includes.h" }
446    module inplace_merge                          { header "__algorithm/inplace_merge.h" }
447    module is_heap_until                          { header "__algorithm/is_heap_until.h" }
448    module is_heap                                { header "__algorithm/is_heap.h" }
449    module is_partitioned                         { header "__algorithm/is_partitioned.h" }
450    module is_permutation                         { header "__algorithm/is_permutation.h" }
451    module is_sorted_until                        { header "__algorithm/is_sorted_until.h" }
452    module is_sorted                              { header "__algorithm/is_sorted.h" }
453    module iter_swap                              { header "__algorithm/iter_swap.h" }
454    module iterator_operations {
455      header "__algorithm/iterator_operations.h"
456      export std.iterator.advance
457      export std.iterator.distance
458      export std.iterator.iter_move
459      export std.iterator.iter_swap
460      export std.iterator.next
461      export std.iterator.prev
462    }
463    module lexicographical_compare_three_way      { header "__algorithm/lexicographical_compare_three_way.h" }
464    module lexicographical_compare                { header "__algorithm/lexicographical_compare.h" }
465    module lower_bound                            { header "__algorithm/lower_bound.h" }
466    module make_heap                              { header "__algorithm/make_heap.h" }
467    module make_projected                         { header "__algorithm/make_projected.h" }
468    module max_element                            { header "__algorithm/max_element.h" }
469    module max                                    { header "__algorithm/max.h" }
470    module merge                                  { header "__algorithm/merge.h" }
471    module min_element                            { header "__algorithm/min_element.h" }
472    module min_max_result                         { header "__algorithm/min_max_result.h" }
473    module min                                    { header "__algorithm/min.h" }
474    module minmax_element                         { header "__algorithm/minmax_element.h" }
475    module minmax {
476      header "__algorithm/minmax.h"
477      export std.utility.pair // return type
478    }
479    module mismatch {
480      header "__algorithm/mismatch.h"
481      export std.utility.pair // return type
482    }
483    module move_backward                          { header "__algorithm/move_backward.h" }
484    module move                                   { header "__algorithm/move.h" }
485    module next_permutation                       { header "__algorithm/next_permutation.h" }
486    module none_of                                { header "__algorithm/none_of.h" }
487    module nth_element                            { header "__algorithm/nth_element.h" }
488    module out_value_result                       { header "__algorithm/out_value_result.h" }
489    module partial_sort_copy                      { header "__algorithm/partial_sort_copy.h" }
490    module partial_sort                           { header "__algorithm/partial_sort.h" }
491    module partition_copy                         { header "__algorithm/partition_copy.h" }
492    module partition_point                        { header "__algorithm/partition_point.h" }
493    module partition                              { header "__algorithm/partition.h" }
494    module pop_heap                               { header "__algorithm/pop_heap.h" }
495    module prev_permutation                       { header "__algorithm/prev_permutation.h" }
496    module pstl                                   { header "__algorithm/pstl.h" }
497    module push_heap                              { header "__algorithm/push_heap.h" }
498    module radix_sort                             { header "__algorithm/radix_sort.h" }
499    module ranges_adjacent_find                   { header "__algorithm/ranges_adjacent_find.h" }
500    module ranges_all_of                          { header "__algorithm/ranges_all_of.h" }
501    module ranges_any_of                          { header "__algorithm/ranges_any_of.h" }
502    module ranges_binary_search {
503      header "__algorithm/ranges_binary_search.h"
504      export std.functional.ranges_operations
505    }
506    module ranges_clamp {
507      header "__algorithm/ranges_clamp.h"
508      export std.functional.ranges_operations
509    }
510    module ranges_contains_subrange {
511      header "__algorithm/ranges_contains_subrange.h"
512    }
513    module ranges_contains {
514      header "__algorithm/ranges_contains.h"
515    }
516    module ranges_copy_backward {
517      header "__algorithm/ranges_copy_backward.h"
518      export std.algorithm.in_out_result
519    }
520    module ranges_copy_if {
521      header "__algorithm/ranges_copy_if.h"
522      export std.algorithm.in_out_result
523    }
524    module ranges_copy_n {
525      header "__algorithm/ranges_copy_n.h"
526      export std.algorithm.in_out_result
527    }
528    module ranges_copy {
529      header "__algorithm/ranges_copy.h"
530      export std.algorithm.in_out_result
531    }
532    module ranges_count_if                        { header "__algorithm/ranges_count_if.h" }
533    module ranges_count                           { header "__algorithm/ranges_count.h" }
534    module ranges_ends_with                       { header "__algorithm/ranges_ends_with.h" }
535    module ranges_equal_range {
536      header "__algorithm/ranges_equal_range.h"
537      export std.functional.ranges_operations
538    }
539    module ranges_equal {
540      header "__algorithm/ranges_equal.h"
541      export std.functional.identity
542    }
543    module ranges_fill_n                          { header "__algorithm/ranges_fill_n.h" }
544    module ranges_fill                            { header "__algorithm/ranges_fill.h" }
545    module ranges_find_end {
546      header "__algorithm/ranges_find_end.h"
547      export std.ranges.subrange // return type
548    }
549    module ranges_find_first_of                   { header "__algorithm/ranges_find_first_of.h" }
550    module ranges_find_if_not                     { header "__algorithm/ranges_find_if_not.h" }
551    module ranges_find_if                         { header "__algorithm/ranges_find_if.h" }
552    module ranges_find_last {
553      header "__algorithm/ranges_find_last.h"
554      export std.ranges.subrange // return type
555    }
556    module ranges_find                            { header "__algorithm/ranges_find.h" }
557    module ranges_fold                            { header "__algorithm/ranges_fold.h" }
558    module ranges_for_each_n {
559      header "__algorithm/ranges_for_each_n.h"
560      export std.algorithm.in_fun_result
561    }
562    module ranges_for_each {
563      header "__algorithm/ranges_for_each.h"
564      export std.algorithm.in_fun_result
565    }
566    module ranges_generate_n {
567      header "__algorithm/ranges_generate_n.h"
568    }
569    module ranges_generate {
570      header "__algorithm/ranges_generate.h"
571    }
572    module ranges_includes {
573      header "__algorithm/ranges_includes.h"
574      export std.functional.ranges_operations
575    }
576    module ranges_inplace_merge {
577      header "__algorithm/ranges_inplace_merge.h"
578      export std.functional.ranges_operations
579    }
580    module ranges_is_heap_until {
581      header "__algorithm/ranges_is_heap_until.h"
582      export std.functional.ranges_operations
583    }
584    module ranges_is_heap {
585      header "__algorithm/ranges_is_heap.h"
586      export std.functional.ranges_operations
587    }
588    module ranges_is_partitioned {
589      header "__algorithm/ranges_is_partitioned.h"
590    }
591    module ranges_is_permutation {
592      header "__algorithm/ranges_is_permutation.h"
593    }
594    module ranges_is_sorted_until {
595      header "__algorithm/ranges_is_sorted_until.h"
596      export std.functional.ranges_operations
597    }
598    module ranges_is_sorted {
599      header "__algorithm/ranges_is_sorted.h"
600      export std.functional.ranges_operations
601    }
602    module ranges_iterator_concept {
603      header "__algorithm/ranges_iterator_concept.h"
604    }
605    module ranges_lexicographical_compare {
606      header "__algorithm/ranges_lexicographical_compare.h"
607      export std.functional.ranges_operations
608    }
609    module ranges_lower_bound {
610      header "__algorithm/ranges_lower_bound.h"
611      export std.functional.ranges_operations
612    }
613    module ranges_make_heap {
614      header "__algorithm/ranges_make_heap.h"
615      export std.functional.ranges_operations
616    }
617    module ranges_max_element {
618      header "__algorithm/ranges_max_element.h"
619      export std.functional.ranges_operations
620    }
621    module ranges_max {
622      header "__algorithm/ranges_max.h"
623      export std.functional.ranges_operations
624    }
625    module ranges_merge {
626      header "__algorithm/ranges_merge.h"
627      export std.functional.ranges_operations
628      export std.algorithm.in_in_out_result
629    }
630    module ranges_min_element {
631      header "__algorithm/ranges_min_element.h"
632      export std.functional.ranges_operations
633    }
634    module ranges_min {
635      header "__algorithm/ranges_min.h"
636      export std.functional.ranges_operations
637    }
638    module ranges_minmax_element {
639      header "__algorithm/ranges_minmax_element.h"
640      export std.functional.ranges_operations
641      export std.algorithm.min_max_result
642    }
643    module ranges_minmax {
644      header "__algorithm/ranges_minmax.h"
645      export std.functional.ranges_operations
646      export std.algorithm.min_max_result
647    }
648    module ranges_mismatch {
649      header "__algorithm/ranges_mismatch.h"
650      export std.algorithm.in_in_result
651    }
652    module ranges_move_backward {
653      header "__algorithm/ranges_move_backward.h"
654      export std.algorithm.in_out_result
655    }
656    module ranges_move {
657      header "__algorithm/ranges_move.h"
658      export std.algorithm.in_out_result
659    }
660    module ranges_next_permutation {
661      header "__algorithm/ranges_next_permutation.h"
662      export std.functional.ranges_operations
663      export std.algorithm.in_found_result
664    }
665    module ranges_none_of {
666      header "__algorithm/ranges_none_of.h"
667    }
668    module ranges_nth_element {
669      header "__algorithm/ranges_nth_element.h"
670      export std.functional.ranges_operations
671    }
672    module ranges_partial_sort_copy {
673      header "__algorithm/ranges_partial_sort_copy.h"
674      export std.functional.ranges_operations
675    }
676    module ranges_partial_sort {
677      header "__algorithm/ranges_partial_sort.h"
678      export std.functional.ranges_operations
679    }
680    module ranges_partition_copy {
681      header "__algorithm/ranges_partition_copy.h"
682      export std.algorithm.in_out_out_result
683    }
684    module ranges_partition_point {
685      header "__algorithm/ranges_partition_point.h"
686    }
687    module ranges_partition {
688      header "__algorithm/ranges_partition.h"
689      export std.ranges.subrange // return type
690    }
691    module ranges_pop_heap {
692      header "__algorithm/ranges_pop_heap.h"
693      export std.functional.ranges_operations
694    }
695    module ranges_prev_permutation {
696      header "__algorithm/ranges_prev_permutation.h"
697      export std.functional.ranges_operations
698      export std.algorithm.in_found_result
699    }
700    module ranges_push_heap {
701      header "__algorithm/ranges_push_heap.h"
702      export std.functional.ranges_operations
703    }
704    module ranges_remove_copy_if {
705      header "__algorithm/ranges_remove_copy_if.h"
706      export std.algorithm.in_out_result
707    }
708    module ranges_remove_copy {
709      header "__algorithm/ranges_remove_copy.h"
710      export std.algorithm.in_out_result
711    }
712    module ranges_remove_if {
713      header "__algorithm/ranges_remove_if.h"
714    }
715    module ranges_remove {
716      header "__algorithm/ranges_remove.h"
717      export std.ranges.subrange // return type
718    }
719    module ranges_replace_copy_if {
720      header "__algorithm/ranges_replace_copy_if.h"
721      export std.algorithm.in_out_result
722    }
723    module ranges_replace_copy {
724      header "__algorithm/ranges_replace_copy.h"
725      export std.algorithm.in_out_result
726    }
727    module ranges_replace_if {
728      header "__algorithm/ranges_replace_if.h"
729    }
730    module ranges_replace {
731      header "__algorithm/ranges_replace.h"
732    }
733    module ranges_reverse_copy {
734      header "__algorithm/ranges_reverse_copy.h"
735      export std.algorithm.in_out_result
736    }
737    module ranges_reverse {
738      header "__algorithm/ranges_reverse.h"
739    }
740    module ranges_rotate_copy {
741      header "__algorithm/ranges_rotate_copy.h"
742      export std.ranges.subrange // return type
743    }
744    module ranges_rotate                          { header "__algorithm/ranges_rotate.h" }
745    module ranges_sample                          { header "__algorithm/ranges_sample.h" }
746    module ranges_search_n {
747      header "__algorithm/ranges_search_n.h"
748      export std.ranges.subrange // return type
749    }
750    module ranges_search {
751      header "__algorithm/ranges_search.h"
752      export std.ranges.subrange // return type
753    }
754    module ranges_set_difference {
755      header "__algorithm/ranges_set_difference.h"
756      export std.functional.ranges_operations
757      export std.algorithm.in_out_result
758    }
759    module ranges_set_intersection {
760      header "__algorithm/ranges_set_intersection.h"
761      export std.functional.ranges_operations
762      export std.algorithm.in_in_out_result
763    }
764    module ranges_set_symmetric_difference {
765      header "__algorithm/ranges_set_symmetric_difference.h"
766      export std.functional.ranges_operations
767      export std.algorithm.in_in_out_result
768    }
769    module ranges_set_union {
770      header "__algorithm/ranges_set_union.h"
771      export std.functional.ranges_operations
772      export std.algorithm.in_in_out_result
773    }
774    module ranges_shuffle {
775      header "__algorithm/ranges_shuffle.h"
776    }
777    module ranges_sort_heap {
778      header "__algorithm/ranges_sort_heap.h"
779      export std.functional.ranges_operations
780    }
781    module ranges_sort {
782      header "__algorithm/ranges_sort.h"
783      export std.functional.ranges_operations
784      export std.algorithm.sort
785      export std.algorithm.make_projected
786    }
787    module ranges_stable_partition {
788      header "__algorithm/ranges_stable_partition.h"
789      export std.ranges.subrange // return type
790    }
791    module ranges_stable_sort {
792      header "__algorithm/ranges_stable_sort.h"
793      export std.functional.ranges_operations
794    }
795    module ranges_starts_with {
796      header "__algorithm/ranges_starts_with.h"
797    }
798    module ranges_swap_ranges {
799      header "__algorithm/ranges_swap_ranges.h"
800      export std.algorithm.in_in_result
801    }
802    module ranges_transform {
803      header "__algorithm/ranges_transform.h"
804      export std.algorithm.in_out_result
805      export std.algorithm.in_in_out_result
806    }
807    module ranges_unique_copy {
808      header "__algorithm/ranges_unique_copy.h"
809    }
810    module ranges_unique {
811      header "__algorithm/ranges_unique.h"
812    }
813    module ranges_upper_bound {
814      header "__algorithm/ranges_upper_bound.h"
815      export std.functional.ranges_operations
816    }
817    module remove_copy_if                         { header "__algorithm/remove_copy_if.h" }
818    module remove_copy                            { header "__algorithm/remove_copy.h" }
819    module remove_if                              { header "__algorithm/remove_if.h" }
820    module remove                                 { header "__algorithm/remove.h" }
821    module replace_copy_if                        { header "__algorithm/replace_copy_if.h" }
822    module replace_copy                           { header "__algorithm/replace_copy.h" }
823    module replace_if                             { header "__algorithm/replace_if.h" }
824    module replace                                { header "__algorithm/replace.h" }
825    module reverse_copy                           { header "__algorithm/reverse_copy.h" }
826    module reverse                                { header "__algorithm/reverse.h" }
827    module rotate_copy                            { header "__algorithm/rotate_copy.h" }
828    module rotate                                 { header "__algorithm/rotate.h" }
829    module sample                                 { header "__algorithm/sample.h" }
830    module search_n                               { header "__algorithm/search_n.h" }
831    module search                                 { header "__algorithm/search.h" }
832    module set_difference                         { header "__algorithm/set_difference.h" }
833    module set_intersection                       { header "__algorithm/set_intersection.h" }
834    module set_symmetric_difference               { header "__algorithm/set_symmetric_difference.h" }
835    module set_union                              { header "__algorithm/set_union.h" }
836    module shift_left                             { header "__algorithm/shift_left.h" }
837    module shift_right                            { header "__algorithm/shift_right.h" }
838    module shuffle                                { header "__algorithm/shuffle.h" }
839    module sift_down                              { header "__algorithm/sift_down.h" }
840    module simd_utils                             { header "__algorithm/simd_utils.h" }
841    module sort_heap                              { header "__algorithm/sort_heap.h" }
842    module sort                                   { header "__algorithm/sort.h" }
843    module stable_partition                       { header "__algorithm/stable_partition.h" }
844    module stable_sort {
845      header "__algorithm/stable_sort.h"
846      export std.memory.unique_temporary_buffer // TODO: Workaround for https://github.com/llvm/llvm-project/issues/120108
847    }
848    module swap_ranges                            { header "__algorithm/swap_ranges.h" }
849    module three_way_comp_ref_type                { header "__algorithm/three_way_comp_ref_type.h" }
850    module transform                              { header "__algorithm/transform.h" }
851    module uniform_random_bit_generator_adaptor   { header "__algorithm/uniform_random_bit_generator_adaptor.h" }
852    module unique_copy                            { header "__algorithm/unique_copy.h" }
853    module unique                                 { header "__algorithm/unique.h" }
854    module unwrap_iter                            { header "__algorithm/unwrap_iter.h" }
855    module unwrap_range                           { header "__algorithm/unwrap_range.h" }
856    module upper_bound                            { header "__algorithm/upper_bound.h" }
857
858    header "algorithm"
859    export *
860  } // module algorithm
861
862  module any {
863    header "any"
864    export *
865  }
866
867  module array {
868    module fwd { header "__fwd/array.h" }
869
870    header "array"
871    export *
872    export std.iterator.reverse_iterator
873  }
874
875  module atomic {
876    module aliases                { header "__atomic/aliases.h" }
877    module atomic_flag            { header "__atomic/atomic_flag.h" }
878    module atomic_init            { header "__atomic/atomic_init.h" }
879    module atomic_lock_free       { header "__atomic/atomic_lock_free.h" }
880    module atomic_ref             { header "__atomic/atomic_ref.h" }
881    module atomic_sync            { header "__atomic/atomic_sync.h" }
882    module atomic {
883      header "__atomic/atomic.h"
884      export std.atomic.atomic_base // most of std::atomic methods are defined there
885    }
886    module check_memory_order     { header "__atomic/check_memory_order.h" }
887    module contention_t           { header "__atomic/contention_t.h" }
888    module fence                  { header "__atomic/fence.h" }
889    module is_always_lock_free    { header "__atomic/is_always_lock_free.h" }
890    module kill_dependency        { header "__atomic/kill_dependency.h" }
891    module memory_order           { header "__atomic/memory_order.h" }
892    module to_gcc_order           { header "__atomic/to_gcc_order.h" }
893
894    module support {
895      header "__atomic/support.h"
896      textual header "__atomic/support/c11.h"
897      textual header "__atomic/support/gcc.h"
898    }
899
900    header "atomic"
901    export *
902  }
903
904  module barrier {
905    header "barrier"
906    export *
907  }
908
909  module bit {
910    module bit_cast         { header "__bit/bit_cast.h" }
911    module bit_ceil         { header "__bit/bit_ceil.h" }
912    module bit_floor        { header "__bit/bit_floor.h" }
913    module bit_log2         { header "__bit/bit_log2.h" }
914    module bit_width        { header "__bit/bit_width.h" }
915    module blsr             { header "__bit/blsr.h" }
916    module byteswap         { header "__bit/byteswap.h" }
917    module countl           { header "__bit/countl.h" }
918    module countr           { header "__bit/countr.h" }
919    module endian           { header "__bit/endian.h" }
920    module has_single_bit   { header "__bit/has_single_bit.h" }
921    module invert_if        { header "__bit/invert_if.h" }
922    module popcount         { header "__bit/popcount.h" }
923    module rotate           { header "__bit/rotate.h" }
924
925    header "bit"
926    export *
927  }
928
929  module bitset {
930    header "bitset"
931    export *
932  }
933
934  module charconv {
935    module chars_format               { header "__charconv/chars_format.h" }
936    module from_chars_floating_point  { header "__charconv/from_chars_floating_point.h" }
937    module from_chars_integral        { header "__charconv/from_chars_integral.h" }
938    module from_chars_result          {
939      header "__charconv/from_chars_result.h"
940      export std.system_error.errc
941    }
942    module tables                     { header "__charconv/tables.h" }
943    module to_chars                   { header "__charconv/to_chars.h" }
944    module to_chars_base_10           { header "__charconv/to_chars_base_10.h" }
945    module to_chars_floating_point    { header "__charconv/to_chars_floating_point.h" }
946    module to_chars_integral          {
947      header "__charconv/to_chars_integral.h"
948      export std.charconv.to_chars_result
949    }
950    module to_chars_result            { header "__charconv/to_chars_result.h" }
951    module traits                     { header "__charconv/traits.h" }
952
953    header "charconv"
954    export *
955  }
956
957  module chrono {
958    module calendar                   { header "__chrono/calendar.h" }
959    module concepts                   { header "__chrono/concepts.h" }
960    module convert_to_timespec        { header "__chrono/convert_to_timespec.h" }
961    module convert_to_tm              { header "__chrono/convert_to_tm.h" }
962    module day                        { header "__chrono/day.h" }
963    module duration                   { header "__chrono/duration.h" }
964    module exception                  { header "__chrono/exception.h" }
965    module file_clock                 { header "__chrono/file_clock.h" }
966    module formatter                  { header "__chrono/formatter.h" }
967    module gps_clock {
968      header "__chrono/gps_clock.h"
969      export std.chrono.time_point
970    }
971    module hh_mm_ss                   { header "__chrono/hh_mm_ss.h" }
972    module high_resolution_clock {
973      header "__chrono/high_resolution_clock.h"
974      export *
975    }
976    module leap_second {
977      header "__chrono/leap_second.h"
978    }
979    module literals {
980      header "__chrono/literals.h"
981    }
982    module local_info {
983      header "__chrono/local_info.h"
984      export std.chrono.sys_info
985    }
986    module month_weekday              { header "__chrono/month_weekday.h" }
987    module month                      { header "__chrono/month.h" }
988    module monthday                   { header "__chrono/monthday.h" }
989    module ostream                    { header "__chrono/ostream.h" }
990    module parser_std_format_spec     { header "__chrono/parser_std_format_spec.h" }
991    module statically_widen           { header "__chrono/statically_widen.h" }
992    module steady_clock {
993      header "__chrono/steady_clock.h"
994      export std.chrono.time_point
995    }
996    module sys_info {
997      header "__chrono/sys_info.h"
998    }
999    module system_clock {
1000      header "__chrono/system_clock.h"
1001      export std.chrono.time_point
1002    }
1003    module tai_clock {
1004      header "__chrono/tai_clock.h"
1005      export std.chrono.time_point
1006    }
1007    module time_point                 { header "__chrono/time_point.h" }
1008    module time_zone_link             { header "__chrono/time_zone_link.h" }
1009    module time_zone                  { header "__chrono/time_zone.h" }
1010    module tzdb_list {
1011      header "__chrono/tzdb_list.h"
1012      export std.forward_list // forward_list iterators are used to implement this API
1013      export std.string_view // by-value argument of type std::string_view
1014    }
1015    module tzdb {
1016      header "__chrono/tzdb.h"
1017      export std.string // public data member of type std::string
1018      export std.vector // public data members of type std::vector
1019    }
1020    module utc_clock {
1021      header "__chrono/utc_clock.h"
1022      export std.chrono.time_point
1023    }
1024    module weekday                    { header "__chrono/weekday.h" }
1025    module year_month_day             { header "__chrono/year_month_day.h" }
1026    module year_month_weekday         { header "__chrono/year_month_weekday.h" }
1027    module year_month                 { header "__chrono/year_month.h" }
1028    module year                       { header "__chrono/year.h" }
1029    module zoned_time                 { header "__chrono/zoned_time.h" }
1030
1031    header "chrono"
1032    export *
1033  } // module chrono
1034
1035  module codecvt {
1036    header "codecvt"
1037    export *
1038  }
1039
1040  module compare {
1041    module common_comparison_category       { header "__compare/common_comparison_category.h" }
1042    module compare_partial_order_fallback   { header "__compare/compare_partial_order_fallback.h" }
1043    module compare_strong_order_fallback    { header "__compare/compare_strong_order_fallback.h" }
1044    module compare_three_way                { header "__compare/compare_three_way.h" }
1045    module compare_three_way_result         { header "__compare/compare_three_way_result.h" }
1046    module compare_weak_order_fallback      { header "__compare/compare_weak_order_fallback.h" }
1047    module is_eq                            { header "__compare/is_eq.h" }
1048    module ordering                         { header "__compare/ordering.h" }
1049    module partial_order                    { header "__compare/partial_order.h" }
1050    module strong_order                     { header "__compare/strong_order.h" }
1051    module synth_three_way                  { header "__compare/synth_three_way.h" }
1052    module three_way_comparable             { header "__compare/three_way_comparable.h" }
1053    module weak_order                       { header "__compare/weak_order.h" }
1054
1055    header "compare"
1056    export *
1057  }
1058
1059  module complex {
1060    module fwd { header "__fwd/complex.h" }
1061
1062    header "complex"
1063    export *
1064  }
1065
1066  module concepts {
1067    module arithmetic               { header "__concepts/arithmetic.h" }
1068    module assignable               { header "__concepts/assignable.h" }
1069    module boolean_testable         { header "__concepts/boolean_testable.h" }
1070    module class_or_enum            { header "__concepts/class_or_enum.h" }
1071    module common_reference_with    { header "__concepts/common_reference_with.h" }
1072    module common_with              { header "__concepts/common_with.h" }
1073    module constructible            { header "__concepts/constructible.h" }
1074    module convertible_to           { header "__concepts/convertible_to.h" }
1075    module copyable                 { header "__concepts/copyable.h" }
1076    module derived_from             { header "__concepts/derived_from.h" }
1077    module destructible             { header "__concepts/destructible.h" }
1078    module different_from           { header "__concepts/different_from.h" }
1079    module equality_comparable      { header "__concepts/equality_comparable.h" }
1080    module invocable                { header "__concepts/invocable.h" }
1081    module movable                  { header "__concepts/movable.h" }
1082    module predicate                { header "__concepts/predicate.h" }
1083    module regular                  { header "__concepts/regular.h" }
1084    module relation                 { header "__concepts/relation.h" }
1085    module same_as                  { header "__concepts/same_as.h" }
1086    module semiregular              { header "__concepts/semiregular.h" }
1087    module swappable                { header "__concepts/swappable.h" }
1088    module totally_ordered          { header "__concepts/totally_ordered.h" }
1089
1090    header "concepts"
1091    export *
1092  }
1093
1094  module condition_variable {
1095    module condition_variable   { header "__condition_variable/condition_variable.h" }
1096
1097    header "condition_variable"
1098    export *
1099  }
1100
1101  module cassert {
1102    textual header "cassert" // NDEBUG requires textual inclusion
1103  }
1104
1105  module ccomplex {
1106    header "ccomplex"
1107    export *
1108  }
1109
1110  module cctype {
1111    header "cctype"
1112    export *
1113  }
1114
1115  module cerrno {
1116    header "cerrno"
1117    export *
1118  }
1119
1120  module cfenv {
1121    header "cfenv"
1122    export *
1123  }
1124
1125  module cfloat {
1126    header "cfloat"
1127    export *
1128  }
1129
1130  module cinttypes {
1131    header "cinttypes"
1132    export *
1133  }
1134
1135  module ciso646 {
1136    header "ciso646"
1137    export *
1138  }
1139
1140  module climits {
1141    header "climits"
1142    export *
1143  }
1144
1145  module clocale {
1146    header "clocale"
1147    export *
1148  }
1149
1150  module cmath {
1151    header "cmath"
1152    export *
1153  }
1154
1155  // TODO: Make non-textual. This seems to cause problems when compiling against Glibc.
1156  module csetjmp {
1157    textual header "csetjmp"
1158  }
1159
1160  module csignal {
1161    header "csignal"
1162    export *
1163  }
1164
1165  module cstdalign {
1166    header "cstdalign"
1167    export *
1168  }
1169
1170  module cstdarg {
1171    header "cstdarg"
1172    export *
1173  }
1174
1175  module cstdbool {
1176    header "cstdbool"
1177    export *
1178  }
1179
1180  module cstddef {
1181    header "cstddef"
1182    export *
1183  }
1184
1185  module cstdio {
1186    header "cstdio"
1187    export *
1188  }
1189
1190  module cstdlib {
1191    header "cstdlib"
1192    export *
1193  }
1194
1195  module cstring {
1196    header "cstring"
1197    export *
1198  }
1199
1200  module ctgmath {
1201    header "ctgmath"
1202    export *
1203  }
1204
1205  module ctime {
1206    header "ctime"
1207    export *
1208  }
1209
1210  module cuchar {
1211    header "cuchar"
1212    export *
1213  }
1214
1215  module cwchar {
1216    header "cwchar"
1217    export *
1218  }
1219
1220  module cwctype {
1221    header "cwctype"
1222    export *
1223  }
1224
1225  module deque {
1226    module fwd { header "__fwd/deque.h" }
1227
1228    header "deque"
1229    export *
1230    export std.iterator.reverse_iterator
1231  }
1232
1233  module exception {
1234    module exception          { header "__exception/exception.h" }
1235    module exception_ptr      { header "__exception/exception_ptr.h" }
1236    module nested_exception   { header "__exception/nested_exception.h" }
1237    module operations         { header "__exception/operations.h" }
1238    module terminate          { header "__exception/terminate.h" }
1239
1240    header "exception"
1241    export *
1242  }
1243
1244  module execution {
1245    header "execution"
1246    export *
1247  }
1248
1249  module expected {
1250    module bad_expected_access    { header "__expected/bad_expected_access.h" }
1251    module expected               { header "__expected/expected.h" }
1252    module unexpect               { header "__expected/unexpect.h" }
1253    module unexpected             { header "__expected/unexpected.h" }
1254
1255    header "expected"
1256    export *
1257  }
1258
1259  module filesystem {
1260    module copy_options                   { header "__filesystem/copy_options.h" }
1261    module directory_entry                { header "__filesystem/directory_entry.h" }
1262    module directory_iterator             {
1263      header "__filesystem/directory_iterator.h"
1264      // This is a workaround for https://github.com/llvm/llvm-project/issues/120108.
1265      export *
1266    }
1267    module directory_options              { header "__filesystem/directory_options.h" }
1268    module file_status                    { header "__filesystem/file_status.h" }
1269    module file_time_type                 { header "__filesystem/file_time_type.h" }
1270    module file_type                      { header "__filesystem/file_type.h" }
1271    module filesystem_error               { header "__filesystem/filesystem_error.h" }
1272    module operations                     { header "__filesystem/operations.h" }
1273    module path_iterator                  { header "__filesystem/path_iterator.h" }
1274    module path                           {
1275      header "__filesystem/path.h"
1276      export std.string // returned by various methods of filesystem::path
1277    }
1278    module perm_options                   { header "__filesystem/perm_options.h" }
1279    module perms                          { header "__filesystem/perms.h" }
1280    module recursive_directory_iterator   { header "__filesystem/recursive_directory_iterator.h" }
1281    module space_info                     { header "__filesystem/space_info.h" }
1282    module u8path                         { header "__filesystem/u8path.h" }
1283
1284    header "filesystem"
1285    export *
1286  }
1287
1288  module flat_map {
1289    module flat_map                       {
1290      header "__flat_map/flat_map.h"
1291      export std.vector.vector
1292      export std.vector.fwd
1293    }
1294    module flat_multimap                  {
1295      header "__flat_map/flat_multimap.h"
1296      export std.vector.vector
1297      export std.vector.fwd
1298    }
1299    module key_value_iterator             { header "__flat_map/key_value_iterator.h" }
1300    module sorted_equivalent              { header "__flat_map/sorted_equivalent.h" }
1301    module sorted_unique                  { header "__flat_map/sorted_unique.h" }
1302    module utils                          { header "__flat_map/utils.h" }
1303
1304    header "flat_map"
1305    export *
1306    export std.algorithm.ranges_sort
1307    export std.iterator.reverse_iterator
1308    export std.ranges.zip_view
1309    export std.tuple
1310  }
1311
1312  module flat_set {
1313    module flat_set                       {
1314      header "__flat_set/flat_set.h"
1315      header "__flat_set/flat_multiset.h"
1316      export std.vector.vector
1317      export std.vector.fwd
1318    }
1319    module ra_iterator                    { header "__flat_set/ra_iterator.h" }
1320    module utils                          { header "__flat_set/utils.h" }
1321
1322    header "flat_set"
1323    export std.flat_map.sorted_unique
1324    export std.flat_map.sorted_equivalent
1325    export *
1326    export std.algorithm.ranges_sort
1327    export std.iterator.reverse_iterator
1328    export std.ranges.zip_view
1329    export std.tuple
1330  }
1331
1332  module format {
1333    module buffer                             {
1334      header "__format/buffer.h"
1335      export std.iterator.back_insert_iterator
1336    }
1337    module concepts                           { header "__format/concepts.h" }
1338    module container_adaptor                  { header "__format/container_adaptor.h" }
1339    module enable_insertable                  { header "__format/enable_insertable.h" }
1340    module escaped_output_table               { header "__format/escaped_output_table.h" }
1341    module extended_grapheme_cluster_table    { header "__format/extended_grapheme_cluster_table.h" }
1342    module format_arg                         { header "__format/format_arg.h" }
1343    module format_arg_store                   { header "__format/format_arg_store.h" }
1344    module format_args                        { header "__format/format_args.h" }
1345    module format_context {
1346      header "__format/format_context.h"
1347      export std.optional // default argument for __format_context_create
1348    }
1349    module format_error {
1350      header "__format/format_error.h"
1351    }
1352    module format_functions {
1353      header "__format/format_functions.h"
1354      export std.string // returned by the functions in that header
1355    }
1356    module format_parse_context               { header "__format/format_parse_context.h" }
1357    module format_string                      { header "__format/format_string.h" }
1358    module format_to_n_result                 { header "__format/format_to_n_result.h" }
1359    module formatter                          { header "__format/formatter.h" }
1360    module formatter_bool                     { header "__format/formatter_bool.h" }
1361    module formatter_char                     { header "__format/formatter_char.h" }
1362    module formatter_floating_point           { header "__format/formatter_floating_point.h" }
1363    module formatter_integer                  { header "__format/formatter_integer.h" }
1364    module formatter_integral                 { header "__format/formatter_integral.h" }
1365    module formatter_output                   { header "__format/formatter_output.h" }
1366    module formatter_pointer                  { header "__format/formatter_pointer.h" }
1367    module formatter_string                   { header "__format/formatter_string.h" }
1368    module formatter_tuple                    { header "__format/formatter_tuple.h" }
1369    module fwd                                { header "__fwd/format.h" }
1370    module indic_conjunct_break_table         { header "__format/indic_conjunct_break_table.h" }
1371    module parser_std_format_spec             { header "__format/parser_std_format_spec.h" }
1372    module range_default_formatter            { header "__format/range_default_formatter.h" }
1373    module range_formatter                    { header "__format/range_formatter.h" }
1374    module unicode                            { header "__format/unicode.h" }
1375    module width_estimation_table             { header "__format/width_estimation_table.h" }
1376    module write_escaped                      { header "__format/write_escaped.h" }
1377
1378    header "format"
1379    export *
1380  } // module format
1381
1382  module forward_list {
1383    header "forward_list"
1384    export *
1385    export std.iterator.reverse_iterator
1386  }
1387
1388  module fstream {
1389    module fwd { header "__fwd/fstream.h" }
1390
1391    header "fstream"
1392    export *
1393  }
1394
1395  module functional {
1396    module binary_function              { header "__functional/binary_function.h" }
1397    module binary_negate                { header "__functional/binary_negate.h" }
1398    module bind_back {
1399      header "__functional/bind_back.h"
1400      export std.functional.perfect_forward // inherited from and using its operators
1401    }
1402    module bind_front {
1403      header "__functional/bind_front.h"
1404      export std.functional.perfect_forward // inherited from and using its operators
1405    }
1406    module bind                         { header "__functional/bind.h" }
1407    module binder1st                    { header "__functional/binder1st.h" }
1408    module binder2nd                    { header "__functional/binder2nd.h" }
1409    module boyer_moore_searcher {
1410      header "__functional/boyer_moore_searcher.h"
1411      export std.memory.shared_ptr
1412    }
1413    module compose {
1414      header "__functional/compose.h"
1415      export std.functional.perfect_forward // inherited from and using its operators
1416    }
1417    module default_searcher             { header "__functional/default_searcher.h" }
1418    module function                     { header "__functional/function.h" }
1419    module hash                         { header "__functional/hash.h" }
1420    module identity                     { header "__functional/identity.h" }
1421    module invoke                       { header "__functional/invoke.h" }
1422    module is_transparent               { header "__functional/is_transparent.h" }
1423    module mem_fn                       { header "__functional/mem_fn.h" }
1424    module mem_fun_ref                  { header "__functional/mem_fun_ref.h" }
1425    module not_fn {
1426      header "__functional/not_fn.h"
1427      export std.functional.perfect_forward // inherited from and using its operators
1428    }
1429    module operations {
1430      header "__functional/operations.h"
1431      export std_core.fwd.functional
1432    }
1433    module perfect_forward {
1434      header "__functional/perfect_forward.h"
1435      export std.tuple
1436    }
1437    module pointer_to_binary_function   { header "__functional/pointer_to_binary_function.h" }
1438    module pointer_to_unary_function    { header "__functional/pointer_to_unary_function.h" }
1439    module ranges_operations            { header "__functional/ranges_operations.h" }
1440    module reference_wrapper            { header "__functional/reference_wrapper.h" }
1441    module unary_function               { header "__functional/unary_function.h" }
1442    module unary_negate                 { header "__functional/unary_negate.h" }
1443    module weak_result_type             { header "__functional/weak_result_type.h" }
1444
1445    header "functional"
1446    export *
1447  } // module functional
1448
1449  module future {
1450    header "future"
1451    export *
1452  }
1453
1454  module initializer_list {
1455    header "initializer_list"
1456    export *
1457  }
1458
1459  module iomanip {
1460    header "iomanip"
1461    export *
1462  }
1463
1464  module ios {
1465    module fwd  { header "__fwd/ios.h" }
1466    module fpos { header "__ios/fpos.h" }
1467
1468    header "ios"
1469    export *
1470  }
1471
1472  module iosfwd {
1473    header "iosfwd"
1474    export *
1475  }
1476
1477  module iostream {
1478    header "iostream"
1479    export *
1480  }
1481
1482  module istream {
1483    module fwd { header "__fwd/istream.h" }
1484
1485    header "istream"
1486    export std.ios // base class
1487  }
1488
1489  module iterator {
1490    module access                     { header "__iterator/access.h" }
1491    module advance                    { header "__iterator/advance.h" }
1492    module aliasing_iterator          { header "__iterator/aliasing_iterator.h" }
1493    module back_insert_iterator       { header "__iterator/back_insert_iterator.h" }
1494    module bounded_iter               { header "__iterator/bounded_iter.h" }
1495    module common_iterator            { header "__iterator/common_iterator.h" }
1496    module concepts {
1497      header "__iterator/concepts.h"
1498      export std_core.type_traits.common_reference
1499    }
1500    module counted_iterator           { header "__iterator/counted_iterator.h" }
1501    module cpp17_iterator_concepts    { header "__iterator/cpp17_iterator_concepts.h" }
1502    module data                       { header "__iterator/data.h" }
1503    module default_sentinel           { header "__iterator/default_sentinel.h" }
1504    module distance                   { header "__iterator/distance.h" }
1505    module empty                      { header "__iterator/empty.h" }
1506    module erase_if_container         { header "__iterator/erase_if_container.h" }
1507    module front_insert_iterator      { header "__iterator/front_insert_iterator.h" }
1508    module incrementable_traits       { header "__iterator/incrementable_traits.h" }
1509    module indirectly_comparable      { header "__iterator/indirectly_comparable.h" }
1510    module insert_iterator            { header "__iterator/insert_iterator.h" }
1511    module istream_iterator           { header "__iterator/istream_iterator.h" }
1512    module istreambuf_iterator        {
1513      header "__iterator/istreambuf_iterator.h"
1514      export std.string.char_traits
1515    }
1516    module iter_move                  { header "__iterator/iter_move.h" }
1517    module iter_swap                  { header "__iterator/iter_swap.h" }
1518    module iterator_traits {
1519      header "__iterator/iterator_traits.h"
1520      export std_core.type_traits.integral_constant
1521      export std_core.type_traits.is_convertible
1522    }
1523    module iterator_with_data         { header "__iterator/iterator_with_data.h" }
1524    module iterator                   { header "__iterator/iterator.h" }
1525    module mergeable                  { header "__iterator/mergeable.h" }
1526    module move_iterator              { header "__iterator/move_iterator.h" }
1527    module move_sentinel              { header "__iterator/move_sentinel.h" }
1528    module next                       { header "__iterator/next.h" }
1529    module ostream_iterator           { header "__iterator/ostream_iterator.h" }
1530    module ostreambuf_iterator {
1531      header "__iterator/ostreambuf_iterator.h"
1532      export iosfwd // for default template argument of ostreambuf_iterator
1533    }
1534    module permutable                 { header "__iterator/permutable.h" }
1535    module prev                       { header "__iterator/prev.h" }
1536    module product_iterator           { header "__iterator/product_iterator.h" }
1537    module projected                  { header "__iterator/projected.h" }
1538    module ranges_iterator_traits     { header "__iterator/ranges_iterator_traits.h" }
1539    module readable_traits            { header "__iterator/readable_traits.h" }
1540    module reverse_access             { header "__iterator/reverse_access.h" }
1541    module reverse_iterator           { header "__iterator/reverse_iterator.h" }
1542    module segmented_iterator         { header "__iterator/segmented_iterator.h" }
1543    module size                       { header "__iterator/size.h" }
1544    module sortable                   { header "__iterator/sortable.h" }
1545    module static_bounded_iter        { header "__iterator/static_bounded_iter.h" }
1546    module unreachable_sentinel       { header "__iterator/unreachable_sentinel.h" }
1547    module wrap_iter                  { header "__iterator/wrap_iter.h" }
1548
1549    header "iterator"
1550    export *
1551  }
1552
1553  module latch {
1554    header "latch"
1555    export *
1556  }
1557
1558  module list {
1559    header "list"
1560    export *
1561    export std.iterator.reverse_iterator
1562  }
1563
1564  module locale {
1565    header "locale"
1566    module check_grouping  { header "__locale_dir/check_grouping.h" }
1567    module get_c_locale    { header "__locale_dir/get_c_locale.h" }
1568    module messages        { header "__locale_dir/messages.h" }
1569    module money           { header "__locale_dir/money.h" }
1570    module num             { header "__locale_dir/num.h" }
1571    module pad_and_output  { header "__locale_dir/pad_and_output.h" }
1572    module scan_keyword    { header "__locale_dir/scan_keyword.h" }
1573    module time            { header "__locale_dir/time.h" }
1574    module wbuffer_convert { header "__locale_dir/wbuffer_convert.h" }
1575    module wstring_convert { header "__locale_dir/wstring_convert.h" }
1576
1577    module support {
1578      header "__locale_dir/locale_base_api.h"
1579      export *
1580    }
1581
1582    module support_impl {
1583      textual header "__locale_dir/support/apple.h"
1584      textual header "__locale_dir/support/bsd_like.h"
1585      textual header "__locale_dir/support/freebsd.h"
1586      textual header "__locale_dir/support/fuchsia.h"
1587      textual header "__locale_dir/support/linux.h"
1588      textual header "__locale_dir/support/no_locale/characters.h"
1589      textual header "__locale_dir/support/no_locale/strtonum.h"
1590      textual header "__locale_dir/support/windows.h"
1591    }
1592
1593    module locale_base_api {
1594      textual header "__locale_dir/locale_base_api/android.h"
1595      textual header "__locale_dir/locale_base_api/bsd_locale_fallbacks.h"
1596      textual header "__locale_dir/locale_base_api/ibm.h"
1597      textual header "__locale_dir/locale_base_api/musl.h"
1598      textual header "__locale_dir/locale_base_api/openbsd.h"
1599    }
1600    export *
1601  }
1602
1603  // TODO: Understand why this needs to live in its own module
1604  module locale_base [system] {
1605    header "__locale"
1606    export *
1607  }
1608
1609  module map {
1610    module fwd { header "__fwd/map.h" }
1611    header "map"
1612    export *
1613    export std.iterator.reverse_iterator
1614  }
1615
1616  module mdspan {
1617    module aligned_accessor   { header "__mdspan/aligned_accessor.h" }
1618    module default_accessor   { header "__mdspan/default_accessor.h" }
1619    module extents            { header "__mdspan/extents.h" }
1620    module fwd                { header "__fwd/mdspan.h" }
1621    module layout_left        { header "__mdspan/layout_left.h" }
1622    module layout_right       { header "__mdspan/layout_right.h" }
1623    module layout_stride      { header "__mdspan/layout_stride.h" }
1624    module mdspan {
1625      header "__mdspan/mdspan.h"
1626      export std.array // returned by some methods
1627    }
1628
1629    header "mdspan"
1630    export *
1631  }
1632
1633  module memory {
1634    module addressof                          { header "__memory/addressof.h" }
1635    module align                              { header "__memory/align.h" }
1636    module aligned_alloc                      { header "__memory/aligned_alloc.h" }
1637    module allocate_at_least                  { header "__memory/allocate_at_least.h" }
1638    module allocation_guard                   { header "__memory/allocation_guard.h" }
1639    module allocator {
1640      header "__memory/allocator.h"
1641      export * // TODO: Workaround for https://github.com/llvm/llvm-project/issues/120108
1642    }
1643    module allocator_arg_t                    { header "__memory/allocator_arg_t.h" }
1644    module allocator_destructor               { header "__memory/allocator_destructor.h" }
1645    module allocator_traits                   { header "__memory/allocator_traits.h" }
1646    module array_cookie                       { header "__memory/array_cookie.h" }
1647    module assume_aligned                     { header "__memory/assume_aligned.h" }
1648    module auto_ptr                           { header "__memory/auto_ptr.h" }
1649    module compressed_pair                    { header "__memory/compressed_pair.h" }
1650    module concepts                           { header "__memory/concepts.h" }
1651    module construct_at                       { header "__memory/construct_at.h" }
1652    module destroy                            { header "__memory/destroy.h" }
1653    module destruct_n                         { header "__memory/destruct_n.h" }
1654    module fwd                                { header "__fwd/memory.h" }
1655    module inout_ptr                          { header "__memory/inout_ptr.h" }
1656    module is_sufficiently_aligned            { header "__memory/is_sufficiently_aligned.h" }
1657    module noexcept_move_assign_container     { header "__memory/noexcept_move_assign_container.h" }
1658    module out_ptr                            { header "__memory/out_ptr.h" }
1659    module pointer_traits                     { header "__memory/pointer_traits.h" }
1660    module ranges_construct_at                { header "__memory/ranges_construct_at.h" }
1661    module ranges_destroy                     { header "__memory/ranges_destroy.h" }
1662    module ranges_uninitialized_algorithms {
1663      header "__memory/ranges_uninitialized_algorithms.h"
1664      export std.algorithm.in_out_result
1665    }
1666    module raw_storage_iterator               { header "__memory/raw_storage_iterator.h" }
1667    module shared_count                       { header "__memory/shared_count.h" }
1668    module shared_ptr                         { header "__memory/shared_ptr.h" }
1669    module swap_allocator                     { header "__memory/swap_allocator.h" }
1670    module temp_value                         { header "__memory/temp_value.h" }
1671    module temporary_buffer                   {
1672      header "__memory/temporary_buffer.h"
1673      export std.utility.pair // return type of std::get_temporary_buffer()
1674    }
1675    module uninitialized_algorithms {
1676      header "__memory/uninitialized_algorithms.h"
1677      export std.utility.pair
1678    }
1679    module unique_ptr {
1680      header "__memory/unique_ptr.h"
1681    }
1682    module unique_temporary_buffer {
1683      header "__memory/unique_temporary_buffer.h"
1684      export std.memory.unique_ptr
1685      export std_core.type_traits.is_constant_evaluated
1686      export * // TODO: Workaround for https://github.com/llvm/llvm-project/issues/120108
1687    }
1688    module uses_allocator                     { header "__memory/uses_allocator.h" }
1689    module uses_allocator_construction        { header "__memory/uses_allocator_construction.h" }
1690
1691    header "memory"
1692    export *
1693  }
1694
1695  module memory_resource {
1696    module fwd                            { header "__fwd/memory_resource.h" }
1697    module memory_resource                { header "__memory_resource/memory_resource.h" }
1698    module monotonic_buffer_resource      { header "__memory_resource/monotonic_buffer_resource.h" }
1699    module polymorphic_allocator          { header "__memory_resource/polymorphic_allocator.h" }
1700    module pool_options                   { header "__memory_resource/pool_options.h" }
1701    module synchronized_pool_resource     { header "__memory_resource/synchronized_pool_resource.h" }
1702    module unsynchronized_pool_resource   { header "__memory_resource/unsynchronized_pool_resource.h" }
1703
1704    header "memory_resource"
1705    export *
1706  }
1707
1708  module mutex {
1709    module lock_guard     { header "__mutex/lock_guard.h" }
1710    module mutex          { header "__mutex/mutex.h" }
1711    module once_flag      { header "__mutex/once_flag.h" }
1712    module tag_types      { header "__mutex/tag_types.h" }
1713    module unique_lock    { header "__mutex/unique_lock.h" }
1714
1715    header "mutex"
1716    export *
1717  }
1718
1719  module new {
1720    header "new"
1721    module align_val_t          { header "__new/align_val_t.h" }
1722    module allocate {
1723      header "__new/allocate.h"
1724      export std.utility.element_count // used as part of the API
1725      export * // TODO: Workaround for https://github.com/llvm/llvm-project/issues/120108
1726    }
1727    module destroying_delete_t  { header "__new/destroying_delete_t.h" }
1728    module exceptions           { header "__new/exceptions.h" }
1729    module global_new_delete    {
1730      header "__new/global_new_delete.h"
1731
1732      export std.new.nothrow_t
1733    }
1734    module interference_size    { header "__new/interference_size.h" }
1735    module launder              { header "__new/launder.h" }
1736    module new_handler          { header "__new/new_handler.h" }
1737    module nothrow_t            { header "__new/nothrow_t.h" }
1738    module placement_new_delete { header "__new/placement_new_delete.h" }
1739
1740    export *
1741  }
1742
1743  module numbers {
1744    header "numbers"
1745    export *
1746  }
1747
1748  module numeric {
1749    module accumulate                 { header "__numeric/accumulate.h" }
1750    module adjacent_difference        { header "__numeric/adjacent_difference.h" }
1751    module exclusive_scan             { header "__numeric/exclusive_scan.h" }
1752    module gcd_lcm                    { header "__numeric/gcd_lcm.h" }
1753    module inclusive_scan             { header "__numeric/inclusive_scan.h" }
1754    module inner_product              { header "__numeric/inner_product.h" }
1755    module iota                       { header "__numeric/iota.h" }
1756    module midpoint                   { header "__numeric/midpoint.h" }
1757    module partial_sum                { header "__numeric/partial_sum.h" }
1758    module pstl                       { header "__numeric/pstl.h" }
1759    module reduce                     { header "__numeric/reduce.h" }
1760    module ranges_iota                { header "__numeric/ranges_iota.h" }
1761    module saturation_arithmetic      { header "__numeric/saturation_arithmetic.h" }
1762    module transform_exclusive_scan   { header "__numeric/transform_exclusive_scan.h" }
1763    module transform_inclusive_scan   { header "__numeric/transform_inclusive_scan.h" }
1764    module transform_reduce           { header "__numeric/transform_reduce.h" }
1765
1766    header "numeric"
1767    export *
1768  }
1769
1770  module optional {
1771    header "optional"
1772    export *
1773  }
1774
1775  module ostream {
1776    module basic_ostream {
1777      header "__ostream/basic_ostream.h"
1778      export std.ios // base class
1779    }
1780    module fwd {
1781      header "__fwd/ostream.h"
1782    }
1783    module print {
1784      header "__ostream/print.h"
1785      export *
1786    }
1787    module put_character_sequence { header "__ostream/put_character_sequence.h" }
1788
1789    header "ostream"
1790    export *
1791  }
1792
1793  module print {
1794    header "print"
1795    export *
1796  }
1797
1798  module queue {
1799    module fwd { header "__fwd/queue.h" }
1800
1801    header "queue"
1802    export *
1803  }
1804
1805  module random {
1806    module bernoulli_distribution             { header "__random/bernoulli_distribution.h" }
1807    module binomial_distribution              { header "__random/binomial_distribution.h" }
1808    module cauchy_distribution                { header "__random/cauchy_distribution.h" }
1809    module chi_squared_distribution           { header "__random/chi_squared_distribution.h" }
1810    module clamp_to_integral                  { header "__random/clamp_to_integral.h" }
1811    module default_random_engine              { header "__random/default_random_engine.h" }
1812    module discard_block_engine               { header "__random/discard_block_engine.h" }
1813    module discrete_distribution              { header "__random/discrete_distribution.h" }
1814    module exponential_distribution           { header "__random/exponential_distribution.h" }
1815    module extreme_value_distribution         { header "__random/extreme_value_distribution.h" }
1816    module fisher_f_distribution              { header "__random/fisher_f_distribution.h" }
1817    module gamma_distribution                 { header "__random/gamma_distribution.h" }
1818    module generate_canonical                 { header "__random/generate_canonical.h" }
1819    module geometric_distribution             { header "__random/geometric_distribution.h" }
1820    module independent_bits_engine            { header "__random/independent_bits_engine.h" }
1821    module is_seed_sequence                   { header "__random/is_seed_sequence.h" }
1822    module is_valid {
1823      header "__random/is_valid.h"
1824      export std_core.type_traits.integral_constant
1825    }
1826    module knuth_b                            { header "__random/knuth_b.h" }
1827    module linear_congruential_engine         { header "__random/linear_congruential_engine.h" }
1828    module log2                               { header "__random/log2.h" }
1829    module lognormal_distribution             { header "__random/lognormal_distribution.h" }
1830    module mersenne_twister_engine            { header "__random/mersenne_twister_engine.h" }
1831    module negative_binomial_distribution     { header "__random/negative_binomial_distribution.h" }
1832    module normal_distribution                { header "__random/normal_distribution.h" }
1833    module piecewise_constant_distribution    { header "__random/piecewise_constant_distribution.h" }
1834    module piecewise_linear_distribution      { header "__random/piecewise_linear_distribution.h" }
1835    module poisson_distribution               { header "__random/poisson_distribution.h" }
1836    module random_device                      { header "__random/random_device.h" }
1837    module ranlux                             { header "__random/ranlux.h" }
1838    module seed_seq                           { header "__random/seed_seq.h" }
1839    module shuffle_order_engine               { header "__random/shuffle_order_engine.h" }
1840    module student_t_distribution             { header "__random/student_t_distribution.h" }
1841    module subtract_with_carry_engine         { header "__random/subtract_with_carry_engine.h" }
1842    module uniform_int_distribution           { header "__random/uniform_int_distribution.h" }
1843    module uniform_random_bit_generator       { header "__random/uniform_random_bit_generator.h" }
1844    module uniform_real_distribution          { header "__random/uniform_real_distribution.h" }
1845    module weibull_distribution               { header "__random/weibull_distribution.h" }
1846
1847    header "random"
1848    export *
1849  }
1850
1851  module ranges {
1852    module access                         { header "__ranges/access.h" }
1853    module all                            { header "__ranges/all.h" }
1854    module as_rvalue_view                 { header "__ranges/as_rvalue_view.h" }
1855    module chunk_by_view {
1856      header "__ranges/chunk_by_view.h"
1857      export std.functional.bind_back
1858    }
1859    module common_view                    { header "__ranges/common_view.h" }
1860    module concepts                       { header "__ranges/concepts.h" }
1861    module container_compatible_range     { header "__ranges/container_compatible_range.h" }
1862    module counted {
1863      header "__ranges/counted.h"
1864      export std.span            // return type of views::counted
1865      export std.ranges.subrange // return type of views::counted
1866    }
1867    module dangling {
1868      header "__ranges/dangling.h"
1869    }
1870    module data {
1871      header "__ranges/data.h"
1872    }
1873    module drop_view {
1874      header "__ranges/drop_view.h"
1875      export std.functional.bind_back
1876    }
1877    module drop_while_view {
1878      header "__ranges/drop_while_view.h"
1879      export std.functional.bind_back
1880    }
1881    module elements_view                  { header "__ranges/elements_view.h" }
1882    module empty                          { header "__ranges/empty.h" }
1883    module empty_view                     { header "__ranges/empty_view.h" }
1884    module enable_borrowed_range          { header "__ranges/enable_borrowed_range.h" }
1885    module enable_view                    { header "__ranges/enable_view.h" }
1886    module filter_view {
1887      header "__ranges/filter_view.h"
1888      export std.functional.bind_back
1889    }
1890    module from_range                     { header "__ranges/from_range.h" }
1891    module iota_view                      { header "__ranges/iota_view.h" }
1892    module istream_view                   { header "__ranges/istream_view.h" }
1893    module join_view                      { header "__ranges/join_view.h" }
1894    module join_with_view                 { header "__ranges/join_with_view.h" }
1895    module lazy_split_view {
1896      header "__ranges/lazy_split_view.h"
1897      export std.functional.bind_back
1898    }
1899    module movable_box                    { header "__ranges/movable_box.h" }
1900    module non_propagating_cache          { header "__ranges/non_propagating_cache.h" }
1901    module owning_view                    { header "__ranges/owning_view.h" }
1902    module range_adaptor                  { header "__ranges/range_adaptor.h" }
1903    module rbegin                         { header "__ranges/rbegin.h" }
1904    module ref_view                       { header "__ranges/ref_view.h" }
1905    module rend                           { header "__ranges/rend.h" }
1906    module repeat_view                    { header "__ranges/repeat_view.h" }
1907    module reverse_view                   { header "__ranges/reverse_view.h" }
1908    module single_view                    { header "__ranges/single_view.h" }
1909    module size                           { header "__ranges/size.h" }
1910    module split_view {
1911      header "__ranges/split_view.h"
1912      export std.functional.bind_back
1913    }
1914    module subrange {
1915      header "__ranges/subrange.h"
1916      export std.ranges.subrange_fwd
1917    }
1918    module subrange_fwd {
1919      header "__fwd/subrange.h"
1920    }
1921    module take_view {
1922      header "__ranges/take_view.h"
1923      export std.functional.bind_back
1924    }
1925    module take_while_view {
1926      header "__ranges/take_while_view.h"
1927      export std.functional.bind_back
1928    }
1929    module to {
1930      header "__ranges/to.h"
1931      export std.functional.bind_back
1932    }
1933    module transform_view {
1934      header "__ranges/transform_view.h"
1935      export std.functional.bind_back
1936    }
1937    module view_interface {
1938      header "__ranges/view_interface.h"
1939    }
1940    module views {
1941      header "__ranges/views.h"
1942    }
1943    module zip_view {
1944      header "__ranges/zip_view.h"
1945      export std.utility.pair
1946    }
1947
1948    header "ranges"
1949    export *
1950  } // module ranges
1951
1952  module ratio {
1953    header "ratio"
1954    export *
1955  }
1956
1957  module regex {
1958    header "regex"
1959    export *
1960    export std.iterator.reverse_iterator
1961  }
1962
1963  module scoped_allocator {
1964    header "scoped_allocator"
1965    export *
1966  }
1967
1968  module semaphore {
1969    header "semaphore"
1970    export *
1971  }
1972
1973  module set {
1974    module fwd { header "__fwd/set.h" }
1975    header "set"
1976    export *
1977    export std.iterator.reverse_iterator
1978  }
1979
1980  module shared_mutex {
1981    header "shared_mutex"
1982    export *
1983  }
1984
1985  module source_location {
1986    header "source_location"
1987    export *
1988  }
1989
1990  module span {
1991    module fwd { header "__fwd/span.h" }
1992
1993    header "span"
1994    export *
1995    export std.iterator.reverse_iterator
1996  }
1997
1998  module sstream {
1999    module fwd { header "__fwd/sstream.h" }
2000
2001    header "sstream"
2002    export *
2003  }
2004
2005  module stack {
2006    module fwd { header "__fwd/stack.h" }
2007
2008    header "stack"
2009    export *
2010  }
2011
2012  module stdexcept {
2013    header "stdexcept"
2014    export *
2015  }
2016
2017  module stop_token {
2018    module atomic_unique_lock     { header "__stop_token/atomic_unique_lock.h" }
2019    module intrusive_list_view    { header "__stop_token/intrusive_list_view.h" }
2020    module intrusive_shared_ptr   { header "__stop_token/intrusive_shared_ptr.h" }
2021    module stop_callback          { header "__stop_token/stop_callback.h" }
2022    module stop_source            { header "__stop_token/stop_source.h" }
2023    module stop_state             { header "__stop_token/stop_state.h" }
2024    module stop_token             { header "__stop_token/stop_token.h" }
2025
2026    header "stop_token"
2027    export *
2028  }
2029
2030  module streambuf {
2031    module fwd { header "__fwd/streambuf.h" }
2032
2033    header "streambuf"
2034    export *
2035  }
2036
2037  module string {
2038    module char_traits              { header "__string/char_traits.h" }
2039    module constexpr_c_functions    {
2040      header "__string/constexpr_c_functions.h"
2041      export std.utility.element_count // used as part of the constexpr C function's API
2042    }
2043    module extern_template_lists    { header "__string/extern_template_lists.h" }
2044    module fwd                      { header "__fwd/string.h" }
2045
2046    header "string"
2047    export *
2048    export std.iterator.reverse_iterator
2049  }
2050
2051  module string_view {
2052    module fwd { header "__fwd/string_view.h" }
2053
2054    header "string_view"
2055    export *
2056    export std.iterator.reverse_iterator
2057  }
2058
2059  module strstream {
2060    header "strstream"
2061    export *
2062  }
2063
2064  module syncstream {
2065    header "syncstream"
2066    export *
2067  }
2068
2069  module system_error {
2070    module errc               { header "__system_error/errc.h" }
2071    module error_category     { header "__system_error/error_category.h" }
2072    module error_code {
2073      header "__system_error/error_code.h"
2074      export std.system_error.error_category // methods of error_code return that type
2075    }
2076    module error_condition    { header "__system_error/error_condition.h" }
2077    module system_error       { header "__system_error/system_error.h" }
2078    module throw_system_error { header "__system_error/throw_system_error.h" }
2079
2080    header "system_error"
2081    export *
2082  }
2083
2084  module thread {
2085    module formatter              { header "__thread/formatter.h" }
2086    module id                     { header "__thread/id.h" }
2087    module jthread                { header "__thread/jthread.h" }
2088    module poll_with_backoff      { header "__thread/poll_with_backoff.h" }
2089    module this_thread            { header "__thread/this_thread.h" }
2090    module thread                 { header "__thread/thread.h" }
2091    module timed_backoff_policy   { header "__thread/timed_backoff_policy.h" }
2092
2093    module support {
2094      header "__thread/support.h"
2095      export *
2096    }
2097    module support_impl {
2098      textual header "__thread/support/c11.h"
2099      textual header "__thread/support/external.h"
2100      textual header "__thread/support/pthread.h"
2101      textual header "__thread/support/windows.h"
2102    }
2103
2104    header "thread"
2105    export *
2106  }
2107
2108  module tuple {
2109    module find_index               { header "__tuple/find_index.h" }
2110    module ignore                   { header "__tuple/ignore.h" }
2111    module make_tuple_types         { header "__tuple/make_tuple_types.h" }
2112    module sfinae_helpers           { header "__tuple/sfinae_helpers.h" }
2113    module tuple_element            { header "__tuple/tuple_element.h" }
2114    module tuple_indices            { header "__tuple/tuple_indices.h" }
2115    module tuple_like_ext           { header "__tuple/tuple_like_ext.h" }
2116    module tuple_like_no_subrange   { header "__tuple/tuple_like_no_subrange.h" }
2117    module tuple_like               { header "__tuple/tuple_like.h" }
2118    module tuple_size               { header "__tuple/tuple_size.h" }
2119    module tuple_types              { header "__tuple/tuple_types.h" }
2120
2121    header "tuple"
2122    export *
2123  }
2124
2125  module typeindex {
2126    header "typeindex"
2127    export *
2128  }
2129
2130  module typeinfo {
2131    header "typeinfo"
2132    export *
2133  }
2134
2135  module unordered_map {
2136    header "unordered_map"
2137    export *
2138    export std.iterator.reverse_iterator
2139  }
2140
2141  module unordered_set {
2142    header "unordered_set"
2143    export *
2144    export std.iterator.reverse_iterator
2145  }
2146
2147  module utility {
2148    module as_const                   { header "__utility/as_const.h" }
2149    module as_lvalue                  { header "__utility/as_lvalue.h" }
2150    module auto_cast                  {
2151      header "__utility/auto_cast.h"
2152      export std_core.type_traits.decay // the macro expansion uses that trait
2153    }
2154    module cmp                        { header "__utility/cmp.h" }
2155    module convert_to_integral        { header "__utility/convert_to_integral.h" }
2156    module element_count              { header "__utility/element_count.h" }
2157    module exception_guard            { header "__utility/exception_guard.h" }
2158    module exchange                   { header "__utility/exchange.h" }
2159    module forward_like               { header "__utility/forward_like.h" }
2160    module in_place {
2161      header "__utility/in_place.h"
2162      export std_core.type_traits.integral_constant
2163    }
2164    module integer_sequence           { header "__utility/integer_sequence.h" }
2165    module is_pointer_in_range        { header "__utility/is_pointer_in_range.h" }
2166    module is_valid_range             { header "__utility/is_valid_range.h" }
2167    module move                       { header "__utility/move.h" }
2168    module no_destroy                 { header "__utility/no_destroy.h" }
2169    module pair                       { header "__utility/pair.h" }
2170    module piecewise_construct        { header "__utility/piecewise_construct.h" }
2171    module priority_tag               { header "__utility/priority_tag.h" }
2172    module private_constructor_tag    { header "__utility/private_constructor_tag.h" }
2173    module rel_ops                    { header "__utility/rel_ops.h" }
2174    module scope_guard                { header "__utility/scope_guard.h" }
2175    module small_buffer               { header "__utility/small_buffer.h" }
2176    module swap                       { header "__utility/swap.h" }
2177    module to_underlying              { header "__utility/to_underlying.h" }
2178    module unreachable                { header "__utility/unreachable.h" }
2179
2180    header "utility"
2181    export *
2182  }
2183
2184  module valarray {
2185    header "valarray"
2186    export *
2187  }
2188
2189  module variant {
2190    module fwd       { header "__fwd/variant.h" }
2191    module monostate { header "__variant/monostate.h" }
2192
2193    header "variant"
2194    export *
2195  }
2196
2197  module vector {
2198    module fwd                   { header "__fwd/vector.h" }
2199
2200    module comparison            { header "__vector/comparison.h" }
2201    module container_traits      { header "__vector/container_traits.h" }
2202    module erase                 { header "__vector/erase.h" }
2203    module vector_bool_formatter {
2204      header "__vector/vector_bool_formatter.h"
2205
2206      export std.format.formatter
2207    }
2208    module pmr                   {
2209      header "__vector/pmr.h"
2210
2211      export std.memory_resource.polymorphic_allocator
2212    }
2213    module swap                  { header "__vector/swap.h" }
2214    module vector_bool           {
2215      header "__vector/vector_bool.h"
2216      export std.bit_reference
2217      export std.memory.allocator
2218      export std.vector.comparison
2219      export std.vector.fwd
2220      export std.vector.swap
2221    }
2222    module vector                {
2223      header "__vector/vector.h"
2224      export std.iterator.bounded_iter
2225      export std.iterator.wrap_iter
2226      export std.memory.allocator
2227      export std.vector.comparison
2228      export std.vector.fwd
2229      export std.vector.swap
2230    }
2231
2232    header "vector"
2233    export std.iterator.reverse_iterator
2234    export *
2235  }
2236
2237  // Experimental C++ Standard Library interfaces
2238  module experimental {
2239    module iterator           { header "experimental/iterator" }
2240    module memory             { header "experimental/memory" }
2241    module propagate_const    { header "experimental/propagate_const" }
2242    module type_traits        { header "experimental/type_traits" }
2243    module utility            { header "experimental/utility" }
2244    module simd {
2245      private header "experimental/__simd/aligned_tag.h"
2246      private header "experimental/__simd/declaration.h"
2247      private header "experimental/__simd/reference.h"
2248      private header "experimental/__simd/scalar.h"
2249      private header "experimental/__simd/simd_mask.h"
2250      private header "experimental/__simd/simd.h"
2251      private header "experimental/__simd/traits.h"
2252      private header "experimental/__simd/utility.h"
2253      private header "experimental/__simd/vec_ext.h"
2254      header "experimental/simd"
2255      export *
2256    }
2257  }
2258
2259  // Implementation detail headers that are private to libc++. These modules
2260  // must not be directly imported.
2261  module debug_utils {
2262    module randomize_range              { header "__debug_utils/randomize_range.h" }
2263    module sanitizers                   { header "__debug_utils/sanitizers.h" }
2264    module strict_weak_ordering_check   { header "__debug_utils/strict_weak_ordering_check.h" }
2265  }
2266
2267  module get_fwd {
2268    header "__fwd/get.h"
2269    export std_core.fwd.pair
2270    export std_core.fwd.tuple
2271    export std.array.fwd
2272    export std.complex.fwd
2273    export std.ranges.subrange_fwd
2274    export std.variant.fwd
2275  }
2276
2277  module pstl {
2278    module backend_fwd {
2279      header "__pstl/backend_fwd.h"
2280    }
2281    module backend {
2282      header "__pstl/backend.h"
2283      export * // need to export everything from whatever backend is currently configured
2284    }
2285    module backends {
2286      module default {
2287        header "__pstl/backends/default.h"
2288        export std_core.utility_core.empty
2289      }
2290      module libdispatch {
2291        header "__pstl/backends/libdispatch.h"
2292        export std.pstl.cpu_algos
2293        export std_core.utility_core.empty
2294      }
2295      module serial {
2296        header "__pstl/backends/serial.h"
2297        export std_core.utility_core.empty
2298      }
2299      module std_thread {
2300        header "__pstl/backends/std_thread.h"
2301        export std.pstl.cpu_algos
2302        export std_core.utility_core.empty
2303      }
2304    }
2305    module cpu_algos {
2306      module any_of {
2307        header "__pstl/cpu_algos/any_of.h"
2308      }
2309      module cpu_traits {
2310        header "__pstl/cpu_algos/cpu_traits.h"
2311      }
2312      module fill {
2313        header "__pstl/cpu_algos/fill.h"
2314        export std_core.utility_core.empty
2315      }
2316      module find_if {
2317        header "__pstl/cpu_algos/find_if.h"
2318      }
2319      module for_each {
2320        header "__pstl/cpu_algos/for_each.h"
2321        export std_core.utility_core.empty
2322      }
2323      module merge {
2324        header "__pstl/cpu_algos/merge.h"
2325      }
2326      module stable_sort {
2327        header "__pstl/cpu_algos/stable_sort.h"
2328        export std_core.utility_core.empty
2329      }
2330      module transform {
2331        header "__pstl/cpu_algos/transform.h"
2332      }
2333      module transform_reduce {
2334        header "__pstl/cpu_algos/transform_reduce.h"
2335      }
2336    }
2337    module dispatch           { header "__pstl/dispatch.h" }
2338    module handle_exception   { header "__pstl/handle_exception.h" }
2339  }
2340
2341  // Miscellaneous modules for top-level headers
2342  module bit_reference_fwd {
2343    header "__fwd/bit_reference.h"
2344  }
2345  module bit_reference {
2346    header "__bit_reference"
2347    export std.bit_reference_fwd
2348  }
2349  module hash_table           { header "__hash_table" }
2350  module node_handle          { header "__node_handle" }
2351  module split_buffer         { header "__split_buffer" }
2352  module tree                 { header "__tree" }
2353  module std_mbstate_t {
2354    header "__std_mbstate_t.h"
2355    export *
2356  }
2357  module log_hardening_failure {
2358    header "__log_hardening_failure"
2359  }
2360  module verbose_abort {
2361    header "__verbose_abort"
2362  }
2363  module verbose_trap {
2364    header "__verbose_trap"
2365  }
2366  module internal_assert {
2367    header "__assert"
2368    export *
2369  }
2370  module assertion_handler {
2371    header "__assertion_handler" // generated via CMake
2372    export *
2373  }
2374
2375  module undef_macros {
2376    textual header "__undef_macros"
2377  }
2378
2379  // This module needs to appear after __tree to work around issues with modules in Objective-C++ mode.
2380  module coroutine {
2381    module coroutine_handle         { header "__coroutine/coroutine_handle.h" }
2382    module coroutine_traits         { header "__coroutine/coroutine_traits.h" }
2383    module noop_coroutine_handle    { header "__coroutine/noop_coroutine_handle.h" }
2384    module trivial_awaitables       { header "__coroutine/trivial_awaitables.h" }
2385
2386    header "coroutine"
2387    export *
2388  }
2389} // module std
2390
2391// C compatibility headers
2392//
2393// These modules need to be their own top-level modules because they depend on the system-provided
2394// headers (via include_next), which are then free to include other C headers provided by libc++.
2395// If we group these headers in a single module, we would end up with circular dependencies.
2396module std_complex_h [system] {
2397  header "complex.h"
2398  export *
2399}
2400module std_ctype_h [system] {
2401  header "ctype.h"
2402  export *
2403}
2404module std_errno_h [system] {
2405  header "errno.h"
2406  export *
2407}
2408module std_fenv_h [system] {
2409  header "fenv.h"
2410  export *
2411}
2412module std_float_h [system] {
2413  header "float.h"
2414  export *
2415}
2416module std_inttypes_h [system] {
2417  header "inttypes.h"
2418  export *
2419}
2420module std_math_h [system] {
2421  header "math.h"
2422  export *
2423}
2424module std_stdatomic_h [system] {
2425  header "stdatomic.h"
2426  export *
2427}
2428module std_stdbool_h [system] {
2429  // <stdbool.h>'s __bool_true_false_are_defined macro requires textual inclusion.
2430  textual header "stdbool.h"
2431}
2432module std_stddef_h [system] {
2433  // <stddef.h> supports being included multiple times with different pre-defined macros
2434  textual header "stddef.h"
2435}
2436module std_stdint_h [system] {
2437  // <stdint.h> supports being included multiple times with different pre-defined macros
2438  textual header "stdint.h"
2439}
2440module std_stdio_h [system] {
2441  // <stdio.h> supports being included multiple times with different pre-defined macros
2442  textual header "stdio.h"
2443}
2444module std_stdlib_h [system] {
2445  // <stdlib.h> supports being included multiple times with different pre-defined macros
2446  textual header "stdlib.h"
2447}
2448module std_string_h [system] {
2449  header "string.h"
2450  export *
2451}
2452module std_tgmath_h [system] {
2453  header "tgmath.h"
2454  export *
2455}
2456module std_uchar_h [system] {
2457  header "uchar.h"
2458  export *
2459}
2460module std_wchar_h [system] {
2461  // <wchar.h> supports being included multiple times with different pre-defined macros
2462  textual header "wchar.h"
2463}
2464module std_wctype_h [system] {
2465  header "wctype.h"
2466  export *
2467}
2468
2469// This header is used by other C compatibility headers so it needs to be in its own module.
2470module std_private_mbstate_t [system] {
2471  header "__mbstate_t.h"
2472  export *
2473}
2474