1// define the module for __config outside of the top level 'std' module
2// since __config may be included from C headers which may create an
3// include cycle.
4module std_config [system] [extern_c] {
5  header "__config"
6  export *
7}
8
9module std [system] {
10  export std_config
11  // FIXME: The standard does not require that each of these submodules
12  // re-exports its imported modules. We should provide an alternative form of
13  // export that issues a warning if a name from the submodule is used, and
14  // use that to provide a 'strict mode' for libc++.
15
16  // Deprecated C-compatibility headers. These can all be included from within
17  // an 'extern "C"' context.
18  module depr [extern_c] {
19    // <assert.h> provided by C library.
20    module ctype_h {
21      header "ctype.h"
22      export *
23    }
24    module errno_h {
25      header "errno.h"
26      export *
27    }
28    module fenv_h {
29      header "fenv.h"
30      export *
31    }
32    // <float.h> provided by compiler or C library.
33    module inttypes_h {
34      header "inttypes.h"
35      export stdint_h
36      export *
37    }
38    // <iso646.h> provided by compiler.
39    // <limits.h> provided by compiler or C library.
40    module locale_h {
41      @requires_LIBCXX_ENABLE_LOCALIZATION@
42      header "locale.h"
43      export *
44    }
45    module math_h {
46      header "math.h"
47      export *
48    }
49    module setjmp_h {
50      header "setjmp.h"
51      export *
52    }
53    module stdatomic_h {
54      @requires_LIBCXX_ENABLE_THREADS@
55      requires cplusplus23
56      header "stdatomic.h"
57      export *
58    }
59    // FIXME: <stdalign.h> is missing.
60    // <signal.h> provided by C library.
61    // <stdarg.h> provided by compiler.
62    // <stdbool.h> provided by compiler.
63    module stddef_h {
64      // <stddef.h>'s __need_* macros require textual inclusion.
65      textual header "stddef.h"
66    }
67    module stdint_h {
68      header "stdint.h"
69      export *
70      // FIXME: This module only exists on OS X and for some reason the
71      // wildcard above doesn't export it.
72      export Darwin.C.stdint
73    }
74    module stdio_h {
75      // <stdio.h>'s __need_* macros require textual inclusion.
76      textual header "stdio.h"
77      export *
78      export Darwin.C.stdio
79    }
80    module stdlib_h {
81      // <stdlib.h>'s __need_* macros require textual inclusion.
82      textual header "stdlib.h"
83      export *
84    }
85    module string_h {
86      header "string.h"
87      export *
88    }
89    module uchar_h {
90      header "uchar.h"
91      export *
92    }
93    // <time.h> provided by C library.
94    module wchar_h {
95      @requires_LIBCXX_ENABLE_WIDE_CHARACTERS@
96      // <wchar.h>'s __need_* macros require textual inclusion.
97      textual header "wchar.h"
98      export *
99    }
100    module wctype_h {
101      @requires_LIBCXX_ENABLE_WIDE_CHARACTERS@
102      header "wctype.h"
103      export *
104    }
105  }
106
107  // <complex.h> and <tgmath.h> are not C headers in any real sense, do not
108  // allow their use in extern "C" contexts.
109  module complex_h {
110    header "complex.h"
111    export ccomplex
112    export *
113  }
114  module tgmath_h {
115    header "tgmath.h"
116    export ccomplex
117    export cmath
118    export *
119  }
120
121  // C compatibility headers.
122  module compat {
123    module cassert {
124      // <cassert>'s use of NDEBUG requires textual inclusion.
125      textual header "cassert"
126    }
127    module ccomplex {
128      header "ccomplex"
129      export complex
130      export *
131    }
132    module cctype {
133      header "cctype"
134      export *
135    }
136    module cerrno {
137      header "cerrno"
138      export *
139    }
140    module cfenv {
141      header "cfenv"
142      export *
143    }
144    module cfloat {
145      header "cfloat"
146      export *
147    }
148    module cinttypes {
149      header "cinttypes"
150      export cstdint
151      export *
152    }
153    module ciso646 {
154      header "ciso646"
155      export *
156    }
157    module climits {
158      header "climits"
159      export *
160    }
161    module clocale {
162      @requires_LIBCXX_ENABLE_LOCALIZATION@
163      header "clocale"
164      export *
165    }
166    module cmath {
167      header "cmath"
168      export *
169    }
170    module csetjmp {
171      header "csetjmp"
172      export *
173    }
174    module csignal {
175      header "csignal"
176      export *
177    }
178    // FIXME: <cstdalign> is missing.
179    module cstdarg {
180      header "cstdarg"
181      export *
182    }
183    module cstdbool {
184      header "cstdbool"
185      export *
186    }
187    module cstddef {
188      header "cstddef"
189      export *
190    }
191    module cstdint {
192      header "cstdint"
193      export depr.stdint_h
194      export *
195    }
196    module cstdio {
197      header "cstdio"
198      export *
199    }
200    module cstdlib {
201      header "cstdlib"
202      export *
203    }
204    module cstring {
205      header "cstring"
206      export *
207    }
208    module ctgmath {
209      header "ctgmath"
210      export ccomplex
211      export cmath
212      export *
213    }
214    module ctime {
215      header "ctime"
216      export *
217    }
218    module cuchar {
219      header "cuchar"
220      export *
221    }
222    module cwchar {
223      @requires_LIBCXX_ENABLE_WIDE_CHARACTERS@
224      header "cwchar"
225      export depr.stdio_h
226      export *
227    }
228    module cwctype {
229      @requires_LIBCXX_ENABLE_WIDE_CHARACTERS@
230      header "cwctype"
231      export *
232    }
233  }
234
235  module algorithm {
236    header "algorithm"
237    export initializer_list
238    export *
239
240    module __algorithm {
241      module adjacent_find                   { private header "__algorithm/adjacent_find.h" }
242      module all_of                          { private header "__algorithm/all_of.h" }
243      module any_of                          { private header "__algorithm/any_of.h" }
244      module binary_search                   { private header "__algorithm/binary_search.h" }
245      module clamp                           { private header "__algorithm/clamp.h" }
246      module comp                            { private header "__algorithm/comp.h" }
247      module comp_ref_type                   { private header "__algorithm/comp_ref_type.h" }
248      module copy                            { private header "__algorithm/copy.h" }
249      module copy_backward                   { private header "__algorithm/copy_backward.h" }
250      module copy_if                         { private header "__algorithm/copy_if.h" }
251      module copy_n                          { private header "__algorithm/copy_n.h" }
252      module count                           { private header "__algorithm/count.h" }
253      module count_if                        { private header "__algorithm/count_if.h" }
254      module equal                           { private header "__algorithm/equal.h" }
255      module equal_range                     { private header "__algorithm/equal_range.h" }
256      module fill                            { private header "__algorithm/fill.h" }
257      module fill_n                          { private header "__algorithm/fill_n.h" }
258      module find                            { private header "__algorithm/find.h" }
259      module find_end                        { private header "__algorithm/find_end.h" }
260      module find_first_of                   { private header "__algorithm/find_first_of.h" }
261      module find_if                         { private header "__algorithm/find_if.h" }
262      module find_if_not                     { private header "__algorithm/find_if_not.h" }
263      module for_each                        { private header "__algorithm/for_each.h" }
264      module for_each_n                      { private header "__algorithm/for_each_n.h" }
265      module generate                        { private header "__algorithm/generate.h" }
266      module generate_n                      { private header "__algorithm/generate_n.h" }
267      module half_positive                   { private header "__algorithm/half_positive.h" }
268      module in_found_result                 { private header "__algorithm/in_found_result.h" }
269      module in_fun_result                   { private header "__algorithm/in_fun_result.h" }
270      module in_in_out_result                { private header "__algorithm/in_in_out_result.h" }
271      module in_in_result                    { private header "__algorithm/in_in_result.h" }
272      module in_out_out_result               { private header "__algorithm/in_out_out_result.h" }
273      module in_out_result                   { private header "__algorithm/in_out_result.h" }
274      module includes                        { private header "__algorithm/includes.h" }
275      module inplace_merge                   { private header "__algorithm/inplace_merge.h" }
276      module is_heap                         { private header "__algorithm/is_heap.h" }
277      module is_heap_until                   { private header "__algorithm/is_heap_until.h" }
278      module is_partitioned                  { private header "__algorithm/is_partitioned.h" }
279      module is_permutation                  { private header "__algorithm/is_permutation.h" }
280      module is_sorted                       { private header "__algorithm/is_sorted.h" }
281      module is_sorted_until                 { private header "__algorithm/is_sorted_until.h" }
282      module iter_swap                       { private header "__algorithm/iter_swap.h" }
283      module iterator_operations             { private header "__algorithm/iterator_operations.h" }
284      module lexicographical_compare         { private header "__algorithm/lexicographical_compare.h" }
285      module lower_bound                     { private header "__algorithm/lower_bound.h" }
286      module make_heap                       { private header "__algorithm/make_heap.h" }
287      module make_projected                  { private header "__algorithm/make_projected.h" }
288      module max                             { private header "__algorithm/max.h" }
289      module max_element                     { private header "__algorithm/max_element.h" }
290      module merge                           { private header "__algorithm/merge.h" }
291      module min                             { private header "__algorithm/min.h" }
292      module min_element                     { private header "__algorithm/min_element.h" }
293      module min_max_result                  { private header "__algorithm/min_max_result.h" }
294      module minmax                          { private header "__algorithm/minmax.h" }
295      module minmax_element                  { private header "__algorithm/minmax_element.h" }
296      module mismatch                        { private header "__algorithm/mismatch.h" }
297      module move                            { private header "__algorithm/move.h" }
298      module move_backward                   { private header "__algorithm/move_backward.h" }
299      module next_permutation                { private header "__algorithm/next_permutation.h" }
300      module none_of                         { private header "__algorithm/none_of.h" }
301      module nth_element                     { private header "__algorithm/nth_element.h" }
302      module partial_sort                    { private header "__algorithm/partial_sort.h" }
303      module partial_sort_copy               { private header "__algorithm/partial_sort_copy.h" }
304      module partition                       { private header "__algorithm/partition.h" }
305      module partition_copy                  { private header "__algorithm/partition_copy.h" }
306      module partition_point                 { private header "__algorithm/partition_point.h" }
307      module pop_heap                        { private header "__algorithm/pop_heap.h" }
308      module prev_permutation                { private header "__algorithm/prev_permutation.h" }
309      module push_heap                       { private header "__algorithm/push_heap.h" }
310      module ranges_adjacent_find            { private header "__algorithm/ranges_adjacent_find.h" }
311      module ranges_all_of                   { private header "__algorithm/ranges_all_of.h" }
312      module ranges_any_of                   { private header "__algorithm/ranges_any_of.h" }
313      module ranges_binary_search            { private header "__algorithm/ranges_binary_search.h" }
314      module ranges_copy                     { private header "__algorithm/ranges_copy.h" }
315      module ranges_copy_backward            { private header "__algorithm/ranges_copy_backward.h" }
316      module ranges_copy_if                  { private header "__algorithm/ranges_copy_if.h" }
317      module ranges_copy_n                   { private header "__algorithm/ranges_copy_n.h" }
318      module ranges_count                    { private header "__algorithm/ranges_count.h" }
319      module ranges_count_if                 { private header "__algorithm/ranges_count_if.h" }
320      module ranges_equal                    { private header "__algorithm/ranges_equal.h" }
321      module ranges_fill                     { private header "__algorithm/ranges_fill.h" }
322      module ranges_fill_n                   { private header "__algorithm/ranges_fill_n.h" }
323      module ranges_find                     { private header "__algorithm/ranges_find.h" }
324      module ranges_find_first_of            { private header "__algorithm/ranges_find_first_of.h" }
325      module ranges_find_if                  { private header "__algorithm/ranges_find_if.h" }
326      module ranges_find_if_not              { private header "__algorithm/ranges_find_if_not.h" }
327      module ranges_for_each                 { private header "__algorithm/ranges_for_each.h" }
328      module ranges_for_each_n               { private header "__algorithm/ranges_for_each_n.h" }
329      module ranges_is_partitioned           { private header "__algorithm/ranges_is_partitioned.h" }
330      module ranges_is_sorted                { private header "__algorithm/ranges_is_sorted.h" }
331      module ranges_is_sorted_until          { private header "__algorithm/ranges_is_sorted_until.h" }
332      module ranges_lexicographical_compare  { private header "__algorithm/ranges_lexicographical_compare.h" }
333      module ranges_lower_bound              { private header "__algorithm/ranges_lower_bound.h" }
334      module ranges_max                      { private header "__algorithm/ranges_max.h" }
335      module ranges_max_element              { private header "__algorithm/ranges_max_element.h" }
336      module ranges_min                      { private header "__algorithm/ranges_min.h" }
337      module ranges_min_element              { private header "__algorithm/ranges_min_element.h" }
338      module ranges_minmax                   { private header "__algorithm/ranges_minmax.h" }
339      module ranges_minmax_element           { private header "__algorithm/ranges_minmax_element.h" }
340      module ranges_mismatch                 { private header "__algorithm/ranges_mismatch.h" }
341      module ranges_none_of                  { private header "__algorithm/ranges_none_of.h" }
342      module ranges_replace                  { private header "__algorithm/ranges_replace.h" }
343      module ranges_replace_if               { private header "__algorithm/ranges_replace_if.h" }
344      module ranges_reverse                  { private header "__algorithm/ranges_reverse.h" }
345      module ranges_sort                     { private header "__algorithm/ranges_sort.h" }
346      module ranges_swap_ranges              { private header "__algorithm/ranges_swap_ranges.h" }
347      module ranges_transform                { private header "__algorithm/ranges_transform.h" }
348      module ranges_upper_bound              { private header "__algorithm/ranges_upper_bound.h" }
349      module remove                          { private header "__algorithm/remove.h" }
350      module remove_copy                     { private header "__algorithm/remove_copy.h" }
351      module remove_copy_if                  { private header "__algorithm/remove_copy_if.h" }
352      module remove_if                       { private header "__algorithm/remove_if.h" }
353      module replace                         { private header "__algorithm/replace.h" }
354      module replace_copy                    { private header "__algorithm/replace_copy.h" }
355      module replace_copy_if                 { private header "__algorithm/replace_copy_if.h" }
356      module replace_if                      { private header "__algorithm/replace_if.h" }
357      module reverse                         { private header "__algorithm/reverse.h" }
358      module reverse_copy                    { private header "__algorithm/reverse_copy.h" }
359      module rotate                          { private header "__algorithm/rotate.h" }
360      module rotate_copy                     { private header "__algorithm/rotate_copy.h" }
361      module sample                          { private header "__algorithm/sample.h" }
362      module search                          { private header "__algorithm/search.h" }
363      module search_n                        { private header "__algorithm/search_n.h" }
364      module set_difference                  { private header "__algorithm/set_difference.h" }
365      module set_intersection                { private header "__algorithm/set_intersection.h" }
366      module set_symmetric_difference        { private header "__algorithm/set_symmetric_difference.h" }
367      module set_union                       { private header "__algorithm/set_union.h" }
368      module shift_left                      { private header "__algorithm/shift_left.h" }
369      module shift_right                     { private header "__algorithm/shift_right.h" }
370      module shuffle                         { private header "__algorithm/shuffle.h" }
371      module sift_down                       { private header "__algorithm/sift_down.h" }
372      module sort                            { private header "__algorithm/sort.h" }
373      module sort_heap                       { private header "__algorithm/sort_heap.h" }
374      module stable_partition                { private header "__algorithm/stable_partition.h" }
375      module stable_sort                     { private header "__algorithm/stable_sort.h" }
376      module swap_ranges                     { private header "__algorithm/swap_ranges.h" }
377      module transform                       { private header "__algorithm/transform.h" }
378      module unique                          { private header "__algorithm/unique.h" }
379      module unique_copy                     { private header "__algorithm/unique_copy.h" }
380      module unwrap_iter                     { private header "__algorithm/unwrap_iter.h" }
381      module upper_bound                     { private header "__algorithm/upper_bound.h" }
382    }
383  }
384  module any {
385    header "any"
386    export *
387  }
388  module array {
389    header "array"
390    export initializer_list
391    export *
392  }
393  module atomic {
394    header "atomic"
395    export *
396  }
397  module barrier {
398    @requires_LIBCXX_ENABLE_THREADS@
399    header "barrier"
400    export *
401  }
402  module bit {
403    header "bit"
404    export *
405
406    module __bit {
407      module bit_cast { private header "__bit/bit_cast.h" }
408      module byteswap { private header "__bit/byteswap.h" }
409    }
410  }
411  module bitset {
412    header "bitset"
413    export string
414    export iosfwd
415    export *
416  }
417  // No submodule for cassert. It fundamentally needs repeated, textual inclusion.
418  module charconv {
419    header "charconv"
420    export *
421
422    module __charconv {
423      module chars_format      { private header "__charconv/chars_format.h" }
424      module from_chars_result { private header "__charconv/from_chars_result.h" }
425      module tables            { private header "__charconv/tables.h" }
426      module to_chars_base_10  { private header "__charconv/to_chars_base_10.h" }
427      module to_chars_result   { private header "__charconv/to_chars_result.h" }
428    }
429
430  }
431  module chrono {
432    header "chrono"
433    export *
434
435    module __chrono {
436      module calendar              { private header "__chrono/calendar.h" }
437      module convert_to_timespec   { private header "__chrono/convert_to_timespec.h" }
438      module day                   { private header "__chrono/day.h" }
439      module duration              { private header "__chrono/duration.h" }
440      module file_clock            { private header "__chrono/file_clock.h" }
441      module hh_mm_ss              { private header "__chrono/hh_mm_ss.h" }
442      module high_resolution_clock {
443        private header "__chrono/high_resolution_clock.h"
444        export steady_clock
445        export system_clock
446      }
447      module literals              { private header "__chrono/literals.h" }
448      module month                 { private header "__chrono/month.h" }
449      module month_weekday         { private header "__chrono/month_weekday.h" }
450      module monthday              { private header "__chrono/monthday.h" }
451      module steady_clock          { private header "__chrono/steady_clock.h" }
452      module system_clock          { private header "__chrono/system_clock.h" }
453      module time_point            { private header "__chrono/time_point.h" }
454      module weekday               { private header "__chrono/weekday.h" }
455      module year                  { private header "__chrono/year.h" }
456      module year_month            { private header "__chrono/year_month.h" }
457      module year_month_day        { private header "__chrono/year_month_day.h" }
458      module year_month_weekday    { private header "__chrono/year_month_weekday.h" }
459    }
460  }
461  module codecvt {
462    @requires_LIBCXX_ENABLE_LOCALIZATION@
463    header "codecvt"
464    export *
465  }
466  module compare {
467    header "compare"
468    export *
469
470    module __compare {
471      module common_comparison_category     { private header "__compare/common_comparison_category.h" }
472      module compare_partial_order_fallback { private header "__compare/compare_partial_order_fallback.h" }
473      module compare_strong_order_fallback  { private header "__compare/compare_strong_order_fallback.h" }
474      module compare_three_way              { private header "__compare/compare_three_way.h" }
475      module compare_three_way_result       { private header "__compare/compare_three_way_result.h" }
476      module compare_weak_order_fallback    { private header "__compare/compare_weak_order_fallback.h" }
477      module is_eq                          { private header "__compare/is_eq.h" }
478      module ordering                       { private header "__compare/ordering.h" }
479      module partial_order                  { private header "__compare/partial_order.h" }
480      module strong_order                   { private header "__compare/strong_order.h" }
481      module synth_three_way                { private header "__compare/synth_three_way.h" }
482      module three_way_comparable           { private header "__compare/three_way_comparable.h" }
483      module weak_order                     { private header "__compare/weak_order.h" }
484    }
485  }
486  module complex {
487    header "complex"
488    export *
489  }
490  module concepts {
491    header "concepts"
492    export *
493
494    module __concepts {
495      module arithmetic                 { private header "__concepts/arithmetic.h" }
496      module assignable                 { private header "__concepts/assignable.h" }
497      module boolean_testable           { private header "__concepts/boolean_testable.h" }
498      module class_or_enum              { private header "__concepts/class_or_enum.h" }
499      module common_reference_with      { private header "__concepts/common_reference_with.h" }
500      module common_with                { private header "__concepts/common_with.h" }
501      module constructible              { private header "__concepts/constructible.h" }
502      module convertible_to             { private header "__concepts/convertible_to.h" }
503      module copyable                   { private header "__concepts/copyable.h" }
504      module derived_from               { private header "__concepts/derived_from.h" }
505      module destructible               { private header "__concepts/destructible.h" }
506      module different_from             { private header "__concepts/different_from.h" }
507      module equality_comparable        { private header "__concepts/equality_comparable.h" }
508      module invocable                  { private header "__concepts/invocable.h" }
509      module movable                    { private header "__concepts/movable.h" }
510      module predicate                  { private header "__concepts/predicate.h" }
511      module regular                    { private header "__concepts/regular.h" }
512      module relation                   { private header "__concepts/relation.h" }
513      module same_as                    { private header "__concepts/same_as.h" }
514      module semiregular                { private header "__concepts/semiregular.h" }
515      module swappable                  { private header "__concepts/swappable.h" }
516      module totally_ordered            { private header "__concepts/totally_ordered.h" }
517    }
518  }
519  module condition_variable {
520    header "condition_variable"
521    export *
522  }
523  module coroutine {
524    requires coroutines
525    header "coroutine"
526    export compare
527    export *
528
529    module __coroutine {
530      module coroutine_handle           { private header "__coroutine/coroutine_handle.h" }
531      module coroutine_traits           { private header "__coroutine/coroutine_traits.h" }
532      module noop_coroutine_handle      { private header "__coroutine/noop_coroutine_handle.h" }
533      module trivial_awaitables         { private header "__coroutine/trivial_awaitables.h" }
534    }
535  }
536  module deque {
537    header "deque"
538    export initializer_list
539    export *
540  }
541  module exception {
542    header "exception"
543    export *
544  }
545  module execution {
546    header "execution"
547    export *
548  }
549  module filesystem {
550    @requires_LIBCXX_ENABLE_FILESYSTEM@
551    header "filesystem"
552    export *
553
554    module __filesystem {
555      module copy_options                 { private header "__filesystem/copy_options.h" }
556      module directory_entry              { private header "__filesystem/directory_entry.h" }
557      module directory_iterator           { private header "__filesystem/directory_iterator.h" }
558      module directory_options            { private header "__filesystem/directory_options.h" }
559      module file_status                  { private header "__filesystem/file_status.h" }
560      module file_time_type               { private header "__filesystem/file_time_type.h" }
561      module file_type                    { private header "__filesystem/file_type.h" }
562      module filesystem_error             { private header "__filesystem/filesystem_error.h" }
563      module operations                   { private header "__filesystem/operations.h" }
564      module path                         { private header "__filesystem/path.h" }
565      module path_iterator                { private header "__filesystem/path_iterator.h" }
566      module perm_options                 { private header "__filesystem/perm_options.h" }
567      module perms                        { private header "__filesystem/perms.h" }
568      module recursive_directory_iterator { private header "__filesystem/recursive_directory_iterator.h" }
569      module space_info                   { private header "__filesystem/space_info.h" }
570      module u8path                       { private header "__filesystem/u8path.h" }
571    }
572  }
573  module format {
574    header "format"
575    export *
576
577    module __format {
578      module buffer                   { private header "__format/buffer.h" }
579      module concepts                 { private header "__format/concepts.h" }
580      module enable_insertable        { private header "__format/enable_insertable.h" }
581      module format_arg               { private header "__format/format_arg.h" }
582      module format_arg_store         { private header "__format/format_arg_store.h" }
583      module format_args              { private header "__format/format_args.h" }
584      module format_context {
585        private header "__format/format_context.h"
586        export optional
587        export locale
588      }
589      module format_error             { private header "__format/format_error.h" }
590      module format_fwd               { private header "__format/format_fwd.h" }
591      module format_parse_context     { private header "__format/format_parse_context.h" }
592      module format_string            { private header "__format/format_string.h" }
593      module format_to_n_result       { private header "__format/format_to_n_result.h" }
594      module formatter                { private header "__format/formatter.h" }
595      module formatter_bool           { private header "__format/formatter_bool.h" }
596      module formatter_char           { private header "__format/formatter_char.h" }
597      module formatter_floating_point { private header "__format/formatter_floating_point.h" }
598      module formatter_integer        { private header "__format/formatter_integer.h" }
599      module formatter_integral       { private header "__format/formatter_integral.h" }
600      module formatter_pointer        { private header "__format/formatter_pointer.h" }
601      module formatter_string         { private header "__format/formatter_string.h" }
602      module parser_std_format_spec   { private header "__format/parser_std_format_spec.h" }
603    }
604  }
605  module forward_list {
606    header "forward_list"
607    export initializer_list
608    export *
609  }
610  module fstream {
611    @requires_LIBCXX_ENABLE_LOCALIZATION@
612    header "fstream"
613    export *
614  }
615  module functional {
616    header "functional"
617    export *
618
619    module __functional {
620      module binary_function            { private header "__functional/binary_function.h" }
621      module binary_negate              { private header "__functional/binary_negate.h" }
622      module bind                       { private header "__functional/bind.h" }
623      module bind_back                  { private header "__functional/bind_back.h" }
624      module bind_front                 { private header "__functional/bind_front.h" }
625      module binder1st                  { private header "__functional/binder1st.h" }
626      module binder2nd                  { private header "__functional/binder2nd.h" }
627      module boyer_moore_searcher       { private header "__functional/boyer_moore_searcher.h" }
628      module compose                    { private header "__functional/compose.h" }
629      module default_searcher           { private header "__functional/default_searcher.h" }
630      module function                   { private header "__functional/function.h" }
631      module hash                       { private header "__functional/hash.h" }
632      module identity                   { private header "__functional/identity.h" }
633      module invoke                     { private header "__functional/invoke.h" }
634      module is_transparent             { private header "__functional/is_transparent.h" }
635      module mem_fn                     { private header "__functional/mem_fn.h" }
636      module mem_fun_ref                { private header "__functional/mem_fun_ref.h" }
637      module not_fn                     { private header "__functional/not_fn.h" }
638      module operations                 { private header "__functional/operations.h" }
639      module perfect_forward            { private header "__functional/perfect_forward.h" }
640      module pointer_to_binary_function { private header "__functional/pointer_to_binary_function.h" }
641      module pointer_to_unary_function  { private header "__functional/pointer_to_unary_function.h" }
642      module ranges_operations          { private header "__functional/ranges_operations.h" }
643      module reference_wrapper          { private header "__functional/reference_wrapper.h" }
644      module unary_function             { private header "__functional/unary_function.h" }
645      module unary_negate               { private header "__functional/unary_negate.h" }
646      module unwrap_ref                 { private header "__functional/unwrap_ref.h" }
647      module weak_result_type           { private header "__functional/weak_result_type.h" }
648    }
649  }
650  module future {
651    @requires_LIBCXX_ENABLE_THREADS@
652    header "future"
653    export *
654  }
655  module initializer_list {
656    header "initializer_list"
657    export *
658  }
659  module iomanip {
660    @requires_LIBCXX_ENABLE_LOCALIZATION@
661    header "iomanip"
662    export *
663  }
664  module ios {
665    @requires_LIBCXX_ENABLE_LOCALIZATION@
666    header "ios"
667    export iosfwd
668    export *
669
670    module __ios {
671      module fpos { private header "__ios/fpos.h" }
672    }
673  }
674  module iosfwd {
675    header "iosfwd"
676    export *
677  }
678  module iostream {
679    @requires_LIBCXX_ENABLE_LOCALIZATION@
680    header "iostream"
681    export ios
682    export streambuf
683    export istream
684    export ostream
685    export *
686  }
687  module istream {
688    @requires_LIBCXX_ENABLE_LOCALIZATION@
689    header "istream"
690    // FIXME: should re-export ios, streambuf?
691    export *
692  }
693  module iterator {
694    header "iterator"
695    export *
696
697    module __iterator {
698      module access                { private header "__iterator/access.h" }
699      module advance               { private header "__iterator/advance.h" }
700      module back_insert_iterator  { private header "__iterator/back_insert_iterator.h" }
701      module common_iterator       { private header "__iterator/common_iterator.h" }
702      module concepts              { private header "__iterator/concepts.h" }
703      module counted_iterator      { private header "__iterator/counted_iterator.h" }
704      module data                  { private header "__iterator/data.h" }
705      module default_sentinel      { private header "__iterator/default_sentinel.h" }
706      module distance              { private header "__iterator/distance.h" }
707      module empty                 { private header "__iterator/empty.h" }
708      module erase_if_container    { private header "__iterator/erase_if_container.h" }
709      module front_insert_iterator { private header "__iterator/front_insert_iterator.h" }
710      module incrementable_traits  { private header "__iterator/incrementable_traits.h" }
711      module indirectly_comparable { private header "__iterator/indirectly_comparable.h" }
712      module insert_iterator       { private header "__iterator/insert_iterator.h" }
713      module istream_iterator      { private header "__iterator/istream_iterator.h" }
714      module istreambuf_iterator   { private header "__iterator/istreambuf_iterator.h" }
715      module iter_move             { private header "__iterator/iter_move.h" }
716      module iter_swap             { private header "__iterator/iter_swap.h" }
717      module iterator              { private header "__iterator/iterator.h" }
718      module iterator_traits       { private header "__iterator/iterator_traits.h" }
719      module mergeable             { private header "__iterator/mergeable.h" }
720      module move_iterator         { private header "__iterator/move_iterator.h" }
721      module move_sentinel         { private header "__iterator/move_sentinel.h" }
722      module next                  { private header "__iterator/next.h" }
723      module ostream_iterator      { private header "__iterator/ostream_iterator.h" }
724      module ostreambuf_iterator   {
725        private header "__iterator/ostreambuf_iterator.h"
726        export iosfwd
727      }
728      module permutable            { private header "__iterator/permutable.h" }
729      module prev                  { private header "__iterator/prev.h" }
730      module projected             { private header "__iterator/projected.h" }
731      module readable_traits       { private header "__iterator/readable_traits.h" }
732      module reverse_access        { private header "__iterator/reverse_access.h" }
733      module reverse_iterator      { private header "__iterator/reverse_iterator.h" }
734      module size                  { private header "__iterator/size.h" }
735      module sortable              { private header "__iterator/sortable.h" }
736      module unreachable_sentinel  { private header "__iterator/unreachable_sentinel.h" }
737      module wrap_iter             { private header "__iterator/wrap_iter.h" }
738    }
739  }
740  module latch {
741    @requires_LIBCXX_ENABLE_THREADS@
742    header "latch"
743    export *
744  }
745  module limits {
746    header "limits"
747    export *
748  }
749  module list {
750    header "list"
751    export initializer_list
752    export *
753  }
754  module locale {
755    @requires_LIBCXX_ENABLE_LOCALIZATION@
756    header "locale"
757    export *
758  }
759  module map {
760    header "map"
761    export initializer_list
762    export *
763  }
764  module memory {
765    header "memory"
766    export *
767
768    module __memory {
769      module addressof                       { private header "__memory/addressof.h" }
770      module allocate_at_least               { private header "__memory/allocate_at_least.h" }
771      module allocation_guard                { private header "__memory/allocation_guard.h" }
772      module allocator                       { private header "__memory/allocator.h" }
773      module allocator_arg_t                 { private header "__memory/allocator_arg_t.h" }
774      module allocator_traits                { private header "__memory/allocator_traits.h" }
775      module assume_aligned                  { private header "__memory/assume_aligned.h" }
776      module auto_ptr                        { private header "__memory/auto_ptr.h" }
777      module compressed_pair                 { private header "__memory/compressed_pair.h" }
778      module concepts                        { private header "__memory/concepts.h" }
779      module construct_at                    { private header "__memory/construct_at.h" }
780      module pointer_traits                  { private header "__memory/pointer_traits.h" }
781      module ranges_construct_at             { private header "__memory/ranges_construct_at.h" }
782      module ranges_uninitialized_algorithms { private header "__memory/ranges_uninitialized_algorithms.h" }
783      module raw_storage_iterator            { private header "__memory/raw_storage_iterator.h" }
784      module shared_ptr                      { private header "__memory/shared_ptr.h" }
785      module temporary_buffer                { private header "__memory/temporary_buffer.h" }
786      module uninitialized_algorithms        { private header "__memory/uninitialized_algorithms.h" }
787      module unique_ptr                      { private header "__memory/unique_ptr.h" }
788      module uses_allocator                  { private header "__memory/uses_allocator.h" }
789      module voidify                         { private header "__memory/voidify.h" }
790    }
791  }
792  module mutex {
793    @requires_LIBCXX_ENABLE_THREADS@
794    header "mutex"
795    export *
796  }
797  module new {
798    header "new"
799    export *
800  }
801  module numbers {
802    header "numbers"
803    export *
804  }
805  module numeric {
806    header "numeric"
807    export *
808
809    module __numeric {
810      module accumulate               { private header "__numeric/accumulate.h" }
811      module adjacent_difference      { private header "__numeric/adjacent_difference.h" }
812      module exclusive_scan           { private header "__numeric/exclusive_scan.h" }
813      module gcd_lcm                  { private header "__numeric/gcd_lcm.h" }
814      module inclusive_scan           { private header "__numeric/inclusive_scan.h" }
815      module inner_product            { private header "__numeric/inner_product.h" }
816      module iota                     { private header "__numeric/iota.h" }
817      module midpoint                 { private header "__numeric/midpoint.h" }
818      module partial_sum              { private header "__numeric/partial_sum.h" }
819      module reduce                   { private header "__numeric/reduce.h" }
820      module transform_exclusive_scan { private header "__numeric/transform_exclusive_scan.h" }
821      module transform_inclusive_scan { private header "__numeric/transform_inclusive_scan.h" }
822      module transform_reduce         { private header "__numeric/transform_reduce.h" }
823    }
824  }
825  module optional {
826    header "optional"
827    export *
828  }
829  module ostream {
830    @requires_LIBCXX_ENABLE_LOCALIZATION@
831    header "ostream"
832    // FIXME: should re-export ios, streambuf?
833    export *
834  }
835  module queue {
836    header "queue"
837    export initializer_list
838    export *
839  }
840  module random {
841    header "random"
842    export initializer_list
843    export *
844
845    module __random {
846      module bernoulli_distribution          { private header "__random/bernoulli_distribution.h" }
847      module binomial_distribution           { private header "__random/binomial_distribution.h" }
848      module cauchy_distribution             { private header "__random/cauchy_distribution.h" }
849      module chi_squared_distribution        { private header "__random/chi_squared_distribution.h" }
850      module clamp_to_integral               { private header "__random/clamp_to_integral.h" }
851      module default_random_engine           { private header "__random/default_random_engine.h" }
852      module discard_block_engine            { private header "__random/discard_block_engine.h" }
853      module discrete_distribution           { private header "__random/discrete_distribution.h" }
854      module exponential_distribution        { private header "__random/exponential_distribution.h" }
855      module extreme_value_distribution      { private header "__random/extreme_value_distribution.h" }
856      module fisher_f_distribution           { private header "__random/fisher_f_distribution.h" }
857      module gamma_distribution              { private header "__random/gamma_distribution.h" }
858      module generate_canonical              { private header "__random/generate_canonical.h" }
859      module geometric_distribution          { private header "__random/geometric_distribution.h" }
860      module independent_bits_engine         { private header "__random/independent_bits_engine.h" }
861      module is_seed_sequence                { private header "__random/is_seed_sequence.h" }
862      module is_valid                        { private header "__random/is_valid.h" }
863      module knuth_b                         { private header "__random/knuth_b.h" }
864      module linear_congruential_engine      { private header "__random/linear_congruential_engine.h" }
865      module log2                            { private header "__random/log2.h" }
866      module lognormal_distribution          { private header "__random/lognormal_distribution.h" }
867      module mersenne_twister_engine         { private header "__random/mersenne_twister_engine.h" }
868      module negative_binomial_distribution  { private header "__random/negative_binomial_distribution.h" }
869      module normal_distribution             { private header "__random/normal_distribution.h" }
870      module piecewise_constant_distribution { private header "__random/piecewise_constant_distribution.h" }
871      module piecewise_linear_distribution   { private header "__random/piecewise_linear_distribution.h" }
872      module poisson_distribution            { private header "__random/poisson_distribution.h" }
873      module random_device                   { private header "__random/random_device.h" }
874      module ranlux                          { private header "__random/ranlux.h" }
875      module seed_seq                        { private header "__random/seed_seq.h" }
876      module shuffle_order_engine            { private header "__random/shuffle_order_engine.h" }
877      module student_t_distribution          { private header "__random/student_t_distribution.h" }
878      module subtract_with_carry_engine      { private header "__random/subtract_with_carry_engine.h" }
879      module uniform_int_distribution        { private header "__random/uniform_int_distribution.h" }
880      module uniform_random_bit_generator    { private header "__random/uniform_random_bit_generator.h" }
881      module uniform_real_distribution       { private header "__random/uniform_real_distribution.h" }
882      module weibull_distribution            { private header "__random/weibull_distribution.h" }
883    }
884  }
885  module ranges {
886    header "ranges"
887    export compare
888    export initializer_list
889    export iterator
890    export *
891
892    module __ranges {
893      module access                 { private header "__ranges/access.h" }
894      module all                    {
895        private header "__ranges/all.h"
896        export functional.__functional.compose
897        export functional.__functional.perfect_forward
898      }
899      module common_view            { private header "__ranges/common_view.h" }
900      module concepts               { private header "__ranges/concepts.h" }
901      module copyable_box           { private header "__ranges/copyable_box.h" }
902      module counted                {
903        private header "__ranges/counted.h"
904        export span
905      }
906      module dangling               { private header "__ranges/dangling.h" }
907      module data                   { private header "__ranges/data.h" }
908      module drop_view              { private header "__ranges/drop_view.h" }
909      module empty                  { private header "__ranges/empty.h" }
910      module empty_view             { private header "__ranges/empty_view.h" }
911      module enable_borrowed_range  { private header "__ranges/enable_borrowed_range.h" }
912      module enable_view            { private header "__ranges/enable_view.h" }
913      module filter_view            { private header "__ranges/filter_view.h" }
914      module iota_view              { private header "__ranges/iota_view.h" }
915      module join_view              { private header "__ranges/join_view.h" }
916      module lazy_split_view        { private header "__ranges/lazy_split_view.h" }
917      module non_propagating_cache  { private header "__ranges/non_propagating_cache.h" }
918      module owning_view            { private header "__ranges/owning_view.h" }
919      module range_adaptor          { private header "__ranges/range_adaptor.h" }
920      module rbegin                 { private header "__ranges/rbegin.h" }
921      module ref_view               { private header "__ranges/ref_view.h" }
922      module rend                   { private header "__ranges/rend.h" }
923      module reverse_view           { private header "__ranges/reverse_view.h" }
924      module single_view            { private header "__ranges/single_view.h" }
925      module size                   { private header "__ranges/size.h" }
926      module subrange               { private header "__ranges/subrange.h" }
927      module take_view              { private header "__ranges/take_view.h" }
928      module transform_view         {
929        private header "__ranges/transform_view.h"
930        export functional.__functional.bind_back
931        export functional.__functional.perfect_forward
932      }
933      module view_interface         { private header "__ranges/view_interface.h" }
934      module views                  { private header "__ranges/views.h" }
935      module zip_view               { private header "__ranges/zip_view.h" }
936    }
937  }
938  module ratio {
939    header "ratio"
940    export *
941  }
942  module regex {
943    @requires_LIBCXX_ENABLE_LOCALIZATION@
944    header "regex"
945    export initializer_list
946    export *
947  }
948  module scoped_allocator {
949    header "scoped_allocator"
950    export *
951  }
952  module semaphore {
953    @requires_LIBCXX_ENABLE_THREADS@
954    header "semaphore"
955    export *
956  }
957  module set {
958    header "set"
959    export initializer_list
960    export *
961  }
962  module shared_mutex {
963    @requires_LIBCXX_ENABLE_THREADS@
964    header "shared_mutex"
965    export version
966  }
967  module span {
968    header "span"
969    export ranges.__ranges.enable_borrowed_range
970    export version
971    module span_fwd { private header "__fwd/span.h" }
972  }
973  module sstream {
974    @requires_LIBCXX_ENABLE_LOCALIZATION@
975    header "sstream"
976    // FIXME: should re-export istream, ostream, ios, streambuf, string?
977    export *
978  }
979  module stack {
980    header "stack"
981    export initializer_list
982    export *
983  }
984  module stdexcept {
985    header "stdexcept"
986    export *
987  }
988  module streambuf {
989    @requires_LIBCXX_ENABLE_LOCALIZATION@
990    header "streambuf"
991    export *
992  }
993  module string {
994    header "string"
995    export initializer_list
996    export string_view
997    module __string {
998      module char_traits           { private header "__string/char_traits.h" }
999      module extern_template_lists { private header "__string/extern_template_lists.h" }
1000    }
1001    export *
1002  }
1003  module string_view {
1004    header "string_view"
1005    export initializer_list
1006    export *
1007    module string_view_fwd { private header "__fwd/string_view.h" }
1008  }
1009  module strstream {
1010    @requires_LIBCXX_ENABLE_LOCALIZATION@
1011    header "strstream"
1012    export *
1013  }
1014  module system_error {
1015    header "system_error"
1016    export *
1017  }
1018  module thread {
1019    @requires_LIBCXX_ENABLE_THREADS@
1020    header "thread"
1021    export *
1022
1023    module __thread {
1024      module poll_with_backoff    { private header "__thread/poll_with_backoff.h" }
1025      module timed_backoff_policy { private header "__thread/timed_backoff_policy.h" }
1026    }
1027  }
1028  module tuple {
1029    header "tuple"
1030    export *
1031  }
1032  module type_traits {
1033    header "type_traits"
1034    export functional.__functional.unwrap_ref
1035    export *
1036
1037    module add_const                          { private header "__type_traits/add_const.h" }
1038    module add_cv                             { private header "__type_traits/add_cv.h" }
1039    module add_lvalue_reference               { private header "__type_traits/add_lvalue_reference.h" }
1040    module add_pointer                        { private header "__type_traits/add_pointer.h" }
1041    module add_rvalue_reference               { private header "__type_traits/add_rvalue_reference.h" }
1042    module add_volatile                       { private header "__type_traits/add_volatile.h" }
1043    module alignment_of                       { private header "__type_traits/alignment_of.h" }
1044    module apply_cv                           { private header "__type_traits/apply_cv.h" }
1045    module conditional                        { private header "__type_traits/conditional.h" }
1046    module conjunction                        { private header "__type_traits/conjunction.h" }
1047    module decay                              { private header "__type_traits/decay.h" }
1048    module disjunction                        { private header "__type_traits/disjunction.h" }
1049    module enable_if                          { private header "__type_traits/enable_if.h" }
1050    module extent                             { private header "__type_traits/extent.h" }
1051    module has_unique_object_representation   { private header "__type_traits/has_unique_object_representation.h" }
1052    module has_virtual_destructor             { private header "__type_traits/has_virtual_destructor.h" }
1053    module integral_constant                  { private header "__type_traits/integral_constant.h" }
1054    module is_abstract                        { private header "__type_traits/is_abstract.h" }
1055    module is_aggregate                       { private header "__type_traits/is_aggregate.h" }
1056    module is_arithmetic                      { private header "__type_traits/is_arithmetic.h" }
1057    module is_array                           { private header "__type_traits/is_array.h" }
1058    module is_assignable                      { private header "__type_traits/is_assignable.h" }
1059    module is_base_of                         { private header "__type_traits/is_base_of.h" }
1060    module is_bounded_array                   { private header "__type_traits/is_bounded_array.h" }
1061    module is_callable                        { private header "__type_traits/is_callable.h" }
1062    module is_class                           { private header "__type_traits/is_class.h" }
1063    module is_compound                        { private header "__type_traits/is_compound.h" }
1064    module is_const                           { private header "__type_traits/is_const.h" }
1065    module is_constant_evaluated              { private header "__type_traits/is_constant_evaluated.h" }
1066    module is_constructible                   { private header "__type_traits/is_constructible.h" }
1067    module is_convertible                     { private header "__type_traits/is_convertible.h" }
1068    module is_copy_assignable                 { private header "__type_traits/is_copy_assignable.h" }
1069    module is_copy_constructible              { private header "__type_traits/is_copy_constructible.h" }
1070    module is_core_convertible                { private header "__type_traits/is_core_convertible.h" }
1071    module is_default_constructible           { private header "__type_traits/is_default_constructible.h" }
1072    module is_destructible                    { private header "__type_traits/is_destructible.h" }
1073    module is_empty                           { private header "__type_traits/is_empty.h" }
1074    module is_enum                            { private header "__type_traits/is_enum.h" }
1075    module is_final                           { private header "__type_traits/is_final.h" }
1076    module is_floating_point                  { private header "__type_traits/is_floating_point.h" }
1077    module is_function                        { private header "__type_traits/is_function.h" }
1078    module is_fundamental                     { private header "__type_traits/is_fundamental.h" }
1079    module is_integral                        { private header "__type_traits/is_integral.h" }
1080    module is_literal_type                    { private header "__type_traits/is_literal_type.h" }
1081    module is_member_function_pointer         { private header "__type_traits/is_member_function_pointer.h" }
1082    module is_member_object_pointer           { private header "__type_traits/is_member_object_pointer.h" }
1083    module is_member_pointer                  { private header "__type_traits/is_member_pointer.h" }
1084    module is_move_assignable                 { private header "__type_traits/is_move_assignable.h" }
1085    module is_move_constructible              { private header "__type_traits/is_move_constructible.h" }
1086    module is_nothrow_assignable              { private header "__type_traits/is_nothrow_assignable.h" }
1087    module is_nothrow_constructible           { private header "__type_traits/is_nothrow_constructible.h" }
1088    module is_nothrow_copy_assignable         { private header "__type_traits/is_nothrow_copy_assignable.h" }
1089    module is_nothrow_copy_constructible      { private header "__type_traits/is_nothrow_copy_constructible.h" }
1090    module is_nothrow_default_constructible   { private header "__type_traits/is_nothrow_default_constructible.h" }
1091    module is_nothrow_destructible            { private header "__type_traits/is_nothrow_destructible.h" }
1092    module is_nothrow_move_assignable         { private header "__type_traits/is_nothrow_move_assignable.h" }
1093    module is_nothrow_move_constructible      { private header "__type_traits/is_nothrow_move_constructible.h" }
1094    module is_null_pointer                    { private header "__type_traits/is_null_pointer.h" }
1095    module is_object                          { private header "__type_traits/is_object.h" }
1096    module is_pod                             { private header "__type_traits/is_pod.h" }
1097    module is_pointer                         { private header "__type_traits/is_pointer.h" }
1098    module is_polymorphic                     { private header "__type_traits/is_polymorphic.h" }
1099    module is_reference                       { private header "__type_traits/is_reference.h" }
1100    module is_reference_wrapper               { private header "__type_traits/is_reference_wrapper.h" }
1101    module is_referenceable                   { private header "__type_traits/is_referenceable.h" }
1102    module is_same                            { private header "__type_traits/is_same.h" }
1103    module is_scalar                          { private header "__type_traits/is_scalar.h" }
1104    module is_scoped_enum                     { private header "__type_traits/is_scoped_enum.h" }
1105    module is_signed                          { private header "__type_traits/is_signed.h" }
1106    module is_standard_layout                 { private header "__type_traits/is_standard_layout.h" }
1107    module is_trivial                         { private header "__type_traits/is_trivial.h" }
1108    module is_trivially_assignable            { private header "__type_traits/is_trivially_assignable.h" }
1109    module is_trivially_constructible         { private header "__type_traits/is_trivially_constructible.h" }
1110    module is_trivially_copy_assignable       { private header "__type_traits/is_trivially_copy_assignable.h" }
1111    module is_trivially_copy_constructible    { private header "__type_traits/is_trivially_copy_constructible.h" }
1112    module is_trivially_copyable              { private header "__type_traits/is_trivially_copyable.h" }
1113    module is_trivially_default_constructible { private header "__type_traits/is_trivially_default_constructible.h" }
1114    module is_trivially_destructible          { private header "__type_traits/is_trivially_destructible.h" }
1115    module is_trivially_move_assignable       { private header "__type_traits/is_trivially_move_assignable.h" }
1116    module is_trivially_move_constructible    { private header "__type_traits/is_trivially_move_constructible.h" }
1117    module is_unbounded_array                 { private header "__type_traits/is_unbounded_array.h" }
1118    module is_union                           { private header "__type_traits/is_union.h" }
1119    module is_unsigned                        { private header "__type_traits/is_unsigned.h" }
1120    module is_void                            { private header "__type_traits/is_void.h" }
1121    module is_volatile                        { private header "__type_traits/is_volatile.h" }
1122    module negation                           { private header "__type_traits/negation.h" }
1123    module rank                               { private header "__type_traits/rank.h" }
1124    module remove_all_extents                 { private header "__type_traits/remove_all_extents.h" }
1125    module remove_const                       { private header "__type_traits/remove_const.h" }
1126    module remove_cv                          { private header "__type_traits/remove_cv.h" }
1127    module remove_extent                      { private header "__type_traits/remove_extent.h" }
1128    module remove_pointer                     { private header "__type_traits/remove_pointer.h" }
1129    module remove_reference                   { private header "__type_traits/remove_reference.h" }
1130    module remove_volatile                    { private header "__type_traits/remove_volatile.h" }
1131    module type_identity                      { private header "__type_traits/type_identity.h" }
1132    module underlying_type                    { private header "__type_traits/underlying_type.h" }
1133    module void_t                             { private header "__type_traits/void_t.h" }
1134  }
1135  module typeindex {
1136    header "typeindex"
1137    export *
1138  }
1139  module typeinfo {
1140    header "typeinfo"
1141    export *
1142  }
1143  module unordered_map {
1144    header "unordered_map"
1145    export initializer_list
1146    export *
1147  }
1148  module unordered_set {
1149    header "unordered_set"
1150    export initializer_list
1151    export *
1152  }
1153  module utility {
1154    header "utility"
1155    export initializer_list
1156    export *
1157
1158    module __utility {
1159      module as_const            { private header "__utility/as_const.h" }
1160      module auto_cast           { private header "__utility/auto_cast.h" }
1161      module cmp                 { private header "__utility/cmp.h" }
1162      module declval             { private header "__utility/declval.h" }
1163      module exchange            { private header "__utility/exchange.h" }
1164      module forward             { private header "__utility/forward.h" }
1165      module in_place            { private header "__utility/in_place.h" }
1166      module integer_sequence    { private header "__utility/integer_sequence.h" }
1167      module move                { private header "__utility/move.h" }
1168      module pair                { private header "__utility/pair.h" }
1169      module piecewise_construct { private header "__utility/piecewise_construct.h" }
1170      module priority_tag        { private header "__utility/priority_tag.h" }
1171      module rel_ops             { private header "__utility/rel_ops.h" }
1172      module swap                { private header "__utility/swap.h" }
1173      module to_underlying       { private header "__utility/to_underlying.h" }
1174      module transaction         { private header "__utility/transaction.h" }
1175      module unreachable         { private header "__utility/unreachable.h" }
1176    }
1177  }
1178  module valarray {
1179    header "valarray"
1180    export initializer_list
1181    export *
1182  }
1183  module variant {
1184    header "variant"
1185    export *
1186
1187    module __variant {
1188      module monostate { private header "__variant/monostate.h" }
1189    }
1190  }
1191  module vector {
1192    header "vector"
1193    export initializer_list
1194    export *
1195  }
1196  module version {
1197    header "version"
1198    export *
1199  }
1200
1201  // FIXME: These should be private.
1202  module __assert            {         header "__assert"            export * }
1203  module __availability      { private header "__availability"      export * }
1204  module __bit_reference     { private header "__bit_reference"     export * }
1205  module __bits              { private header "__bits"              export * }
1206  module __debug             {         header "__debug"             export * }
1207  module __errc              { private header "__errc"              export * }
1208  module __hash_table        {         header "__hash_table"        export * }
1209  module __locale            {
1210    @requires_LIBCXX_ENABLE_LOCALIZATION@
1211    private header "__locale" export *
1212  }
1213  module __mbstate_t         { private header "__mbstate_t.h"       export * }
1214  module __mutex_base        { private header "__mutex_base"        export * }
1215  module __node_handle       { private header "__node_handle"       export * }
1216  module __split_buffer      { private header "__split_buffer"      export * }
1217  module __std_stream        {
1218    @requires_LIBCXX_ENABLE_LOCALIZATION@
1219    private header "__std_stream" export *
1220  }
1221  module __threading_support {         header "__threading_support" export * }
1222  module __tree              {         header "__tree"              export * }
1223  module __tuple             { private header "__tuple"             export * }
1224  module __undef_macros      {         header "__undef_macros"      export * }
1225
1226  module experimental {
1227    requires cplusplus11
1228
1229    module algorithm {
1230      header "experimental/algorithm"
1231      export *
1232    }
1233    module coroutine {
1234      requires coroutines
1235      header "experimental/coroutine"
1236      export *
1237    }
1238    module deque {
1239      header "experimental/deque"
1240      export *
1241    }
1242    module forward_list {
1243      header "experimental/forward_list"
1244      export *
1245    }
1246    module functional {
1247      header "experimental/functional"
1248      export *
1249    }
1250    module iterator {
1251      header "experimental/iterator"
1252      export *
1253    }
1254    module list {
1255      header "experimental/list"
1256      export *
1257    }
1258    module map {
1259      header "experimental/map"
1260      export *
1261    }
1262    module memory_resource {
1263      header "experimental/memory_resource"
1264      export *
1265    }
1266    module propagate_const {
1267      header "experimental/propagate_const"
1268      export *
1269    }
1270    module regex {
1271      @requires_LIBCXX_ENABLE_LOCALIZATION@
1272      header "experimental/regex"
1273      export *
1274    }
1275    module simd {
1276      header "experimental/simd"
1277      export *
1278    }
1279    module set {
1280      header "experimental/set"
1281      export *
1282    }
1283    module span {
1284      header "span"
1285      export *
1286    }
1287    module string {
1288      header "experimental/string"
1289      export *
1290    }
1291    module type_traits {
1292      header "experimental/type_traits"
1293      export *
1294    }
1295    module unordered_map {
1296      header "experimental/unordered_map"
1297      export *
1298    }
1299    module unordered_set {
1300      header "experimental/unordered_set"
1301      export *
1302    }
1303    module utility {
1304      header "experimental/utility"
1305      export *
1306    }
1307    module vector {
1308      header "experimental/vector"
1309      export *
1310    }
1311    // FIXME these should be private
1312    module __memory {
1313      header "experimental/__memory"
1314      export *
1315    }
1316  } // end experimental
1317}
1318