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