xref: /freebsd-src/contrib/llvm-project/libcxx/include/module.modulemap (revision 04eeddc0aa8e0a417a16eaf9d7d095207f4a8623)
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}
7
8module std [system] {
9  export std_config
10  // FIXME: The standard does not require that each of these submodules
11  // re-exports its imported modules. We should provide an alternative form of
12  // export that issues a warning if a name from the submodule is used, and
13  // use that to provide a 'strict mode' for libc++.
14
15  // Deprecated C-compatibility headers. These can all be included from within
16  // an 'extern "C"' context.
17  module depr [extern_c] {
18    // <assert.h> provided by C library.
19    module ctype_h {
20      header "ctype.h"
21      export *
22    }
23    module errno_h {
24      header "errno.h"
25      export *
26    }
27    module fenv_h {
28      header "fenv.h"
29      export *
30    }
31    // <float.h> provided by compiler or C library.
32    module inttypes_h {
33      header "inttypes.h"
34      export stdint_h
35      export *
36    }
37    // <iso646.h> provided by compiler.
38    // <limits.h> provided by compiler or C library.
39    module locale_h {
40      header "locale.h"
41      export *
42    }
43    module math_h {
44      header "math.h"
45      export *
46    }
47    module setjmp_h {
48      header "setjmp.h"
49      export *
50    }
51    // FIXME: <stdalign.h> is missing.
52    // <signal.h> provided by C library.
53    // <stdarg.h> provided by compiler.
54    // <stdbool.h> provided by compiler.
55    module stddef_h {
56      // <stddef.h>'s __need_* macros require textual inclusion.
57      textual header "stddef.h"
58    }
59    module stdint_h {
60      header "stdint.h"
61      export *
62      // FIXME: This module only exists on OS X and for some reason the
63      // wildcard above doesn't export it.
64      export Darwin.C.stdint
65    }
66    module stdio_h {
67      // <stdio.h>'s __need_* macros require textual inclusion.
68      textual header "stdio.h"
69      export *
70      export Darwin.C.stdio
71    }
72    module stdlib_h {
73      // <stdlib.h>'s __need_* macros require textual inclusion.
74      textual header "stdlib.h"
75      export *
76    }
77    module string_h {
78      header "string.h"
79      export *
80    }
81    // FIXME: <uchar.h> is missing.
82    // <time.h> provided by C library.
83    module wchar_h {
84      // <wchar.h>'s __need_* macros require textual inclusion.
85      textual header "wchar.h"
86      export *
87    }
88    module wctype_h {
89      header "wctype.h"
90      export *
91    }
92  }
93
94  // <complex.h> and <tgmath.h> are not C headers in any real sense, do not
95  // allow their use in extern "C" contexts.
96  module complex_h {
97    header "complex.h"
98    export ccomplex
99    export *
100  }
101  module tgmath_h {
102    header "tgmath.h"
103    export ccomplex
104    export cmath
105    export *
106  }
107
108  // C compatibility headers.
109  module compat {
110    module cassert {
111      // <cassert>'s use of NDEBUG requires textual inclusion.
112      textual header "cassert"
113    }
114    module ccomplex {
115      header "ccomplex"
116      export complex
117      export *
118    }
119    module cctype {
120      header "cctype"
121      export *
122    }
123    module cerrno {
124      header "cerrno"
125      export *
126    }
127    module cfenv {
128      header "cfenv"
129      export *
130    }
131    module cfloat {
132      header "cfloat"
133      export *
134    }
135    module cinttypes {
136      header "cinttypes"
137      export cstdint
138      export *
139    }
140    module ciso646 {
141      header "ciso646"
142      export *
143    }
144    module climits {
145      header "climits"
146      export *
147    }
148    module clocale {
149      header "clocale"
150      export *
151    }
152    module cmath {
153      header "cmath"
154      export *
155    }
156    module csetjmp {
157      header "csetjmp"
158      export *
159    }
160    module csignal {
161      header "csignal"
162      export *
163    }
164    // FIXME: <cstdalign> is missing.
165    module cstdarg {
166      header "cstdarg"
167      export *
168    }
169    module cstdbool {
170      header "cstdbool"
171      export *
172    }
173    module cstddef {
174      header "cstddef"
175      export *
176    }
177    module cstdint {
178      header "cstdint"
179      export depr.stdint_h
180      export *
181    }
182    module cstdio {
183      header "cstdio"
184      export *
185    }
186    module cstdlib {
187      header "cstdlib"
188      export *
189    }
190    module cstring {
191      header "cstring"
192      export *
193    }
194    module ctgmath {
195      header "ctgmath"
196      export ccomplex
197      export cmath
198      export *
199    }
200    module ctime {
201      header "ctime"
202      export *
203    }
204    // FIXME: <cuchar> is missing.
205    module cwchar {
206      header "cwchar"
207      export depr.stdio_h
208      export *
209    }
210    module cwctype {
211      header "cwctype"
212      export *
213    }
214  }
215
216  module algorithm {
217    header "algorithm"
218    export initializer_list
219    export *
220
221    module __algorithm {
222      module adjacent_find            { private header "__algorithm/adjacent_find.h" }
223      module all_of                   { private header "__algorithm/all_of.h" }
224      module any_of                   { private header "__algorithm/any_of.h" }
225      module binary_search            { private header "__algorithm/binary_search.h" }
226      module clamp                    { private header "__algorithm/clamp.h" }
227      module comp                     { private header "__algorithm/comp.h" }
228      module comp_ref_type            { private header "__algorithm/comp_ref_type.h" }
229      module copy                     { private header "__algorithm/copy.h" }
230      module copy_backward            { private header "__algorithm/copy_backward.h" }
231      module copy_if                  { private header "__algorithm/copy_if.h" }
232      module copy_n                   { private header "__algorithm/copy_n.h" }
233      module count                    { private header "__algorithm/count.h" }
234      module count_if                 { private header "__algorithm/count_if.h" }
235      module equal                    { private header "__algorithm/equal.h" }
236      module equal_range              { private header "__algorithm/equal_range.h" }
237      module fill                     { private header "__algorithm/fill.h" }
238      module fill_n                   { private header "__algorithm/fill_n.h" }
239      module find                     { private header "__algorithm/find.h" }
240      module find_end                 { private header "__algorithm/find_end.h" }
241      module find_first_of            { private header "__algorithm/find_first_of.h" }
242      module find_if                  { private header "__algorithm/find_if.h" }
243      module find_if_not              { private header "__algorithm/find_if_not.h" }
244      module for_each                 { private header "__algorithm/for_each.h" }
245      module for_each_n               { private header "__algorithm/for_each_n.h" }
246      module generate                 { private header "__algorithm/generate.h" }
247      module generate_n               { private header "__algorithm/generate_n.h" }
248      module half_positive            { private header "__algorithm/half_positive.h" }
249      module in_in_result             { private header "__algorithm/in_in_result.h" }
250      module in_out_result            { private header "__algorithm/in_out_result.h" }
251      module includes                 { private header "__algorithm/includes.h" }
252      module inplace_merge            { private header "__algorithm/inplace_merge.h" }
253      module is_heap                  { private header "__algorithm/is_heap.h" }
254      module is_heap_until            { private header "__algorithm/is_heap_until.h" }
255      module is_partitioned           { private header "__algorithm/is_partitioned.h" }
256      module is_permutation           { private header "__algorithm/is_permutation.h" }
257      module is_sorted                { private header "__algorithm/is_sorted.h" }
258      module is_sorted_until          { private header "__algorithm/is_sorted_until.h" }
259      module iter_swap                { private header "__algorithm/iter_swap.h" }
260      module lexicographical_compare  { private header "__algorithm/lexicographical_compare.h" }
261      module lower_bound              { private header "__algorithm/lower_bound.h" }
262      module make_heap                { private header "__algorithm/make_heap.h" }
263      module max                      { private header "__algorithm/max.h" }
264      module max_element              { private header "__algorithm/max_element.h" }
265      module merge                    { private header "__algorithm/merge.h" }
266      module min                      { private header "__algorithm/min.h" }
267      module min_element              { private header "__algorithm/min_element.h" }
268      module minmax                   { private header "__algorithm/minmax.h" }
269      module minmax_element           { private header "__algorithm/minmax_element.h" }
270      module mismatch                 { private header "__algorithm/mismatch.h" }
271      module move                     { private header "__algorithm/move.h" }
272      module move_backward            { private header "__algorithm/move_backward.h" }
273      module next_permutation         { private header "__algorithm/next_permutation.h" }
274      module none_of                  { private header "__algorithm/none_of.h" }
275      module nth_element              { private header "__algorithm/nth_element.h" }
276      module partial_sort             { private header "__algorithm/partial_sort.h" }
277      module partial_sort_copy        { private header "__algorithm/partial_sort_copy.h" }
278      module partition                { private header "__algorithm/partition.h" }
279      module partition_copy           { private header "__algorithm/partition_copy.h" }
280      module partition_point          { private header "__algorithm/partition_point.h" }
281      module pop_heap                 { private header "__algorithm/pop_heap.h" }
282      module prev_permutation         { private header "__algorithm/prev_permutation.h" }
283      module push_heap                { private header "__algorithm/push_heap.h" }
284      module remove                   { private header "__algorithm/remove.h" }
285      module remove_copy              { private header "__algorithm/remove_copy.h" }
286      module remove_copy_if           { private header "__algorithm/remove_copy_if.h" }
287      module remove_if                { private header "__algorithm/remove_if.h" }
288      module replace                  { private header "__algorithm/replace.h" }
289      module replace_copy             { private header "__algorithm/replace_copy.h" }
290      module replace_copy_if          { private header "__algorithm/replace_copy_if.h" }
291      module replace_if               { private header "__algorithm/replace_if.h" }
292      module reverse                  { private header "__algorithm/reverse.h" }
293      module reverse_copy             { private header "__algorithm/reverse_copy.h" }
294      module rotate                   { private header "__algorithm/rotate.h" }
295      module rotate_copy              { private header "__algorithm/rotate_copy.h" }
296      module sample                   { private header "__algorithm/sample.h" }
297      module search                   { private header "__algorithm/search.h" }
298      module search_n                 { private header "__algorithm/search_n.h" }
299      module set_difference           { private header "__algorithm/set_difference.h" }
300      module set_intersection         { private header "__algorithm/set_intersection.h" }
301      module set_symmetric_difference { private header "__algorithm/set_symmetric_difference.h" }
302      module set_union                { private header "__algorithm/set_union.h" }
303      module shift_left               { private header "__algorithm/shift_left.h" }
304      module shift_right              { private header "__algorithm/shift_right.h" }
305      module shuffle                  { private header "__algorithm/shuffle.h" }
306      module sift_down                { private header "__algorithm/sift_down.h" }
307      module sort                     { private header "__algorithm/sort.h" }
308      module sort_heap                { private header "__algorithm/sort_heap.h" }
309      module stable_partition         { private header "__algorithm/stable_partition.h" }
310      module stable_sort              { private header "__algorithm/stable_sort.h" }
311      module swap_ranges              { private header "__algorithm/swap_ranges.h" }
312      module transform                { private header "__algorithm/transform.h" }
313      module unique                   { private header "__algorithm/unique.h" }
314      module unique_copy              { private header "__algorithm/unique_copy.h" }
315      module unwrap_iter              { private header "__algorithm/unwrap_iter.h" }
316      module upper_bound              { private header "__algorithm/upper_bound.h" }
317    }
318  }
319  module any {
320    header "any"
321    export *
322  }
323  module array {
324    header "array"
325    export initializer_list
326    export *
327  }
328  module atomic {
329    header "atomic"
330    export *
331  }
332  module barrier {
333    requires cplusplus14
334    header "barrier"
335    export *
336  }
337  module bit {
338    header "bit"
339    export *
340
341    module __bit {
342      module bit_cast { private header "__bit/bit_cast.h" }
343      module byteswap { private header "__bit/byteswap.h" }
344    }
345  }
346  module bitset {
347    header "bitset"
348    export string
349    export iosfwd
350    export *
351  }
352  // No submodule for cassert. It fundamentally needs repeated, textual inclusion.
353  module charconv {
354    header "charconv"
355    export *
356
357    module __charconv {
358      module chars_format      { private header "__charconv/chars_format.h" }
359      module from_chars_result { private header "__charconv/from_chars_result.h" }
360      module to_chars_result   { private header "__charconv/to_chars_result.h" }
361    }
362
363  }
364  module chrono {
365    header "chrono"
366    export *
367
368    module __chrono {
369      module calendar              { private header "__chrono/calendar.h" }
370      module convert_to_timespec   { private header "__chrono/convert_to_timespec.h" }
371      module duration              { private header "__chrono/duration.h" }
372      module file_clock            { private header "__chrono/file_clock.h" }
373      module high_resolution_clock { private header "__chrono/high_resolution_clock.h" }
374      module steady_clock          { private header "__chrono/steady_clock.h" }
375      module system_clock          { private header "__chrono/system_clock.h" }
376      module time_point            { private header "__chrono/time_point.h" }
377    }
378  }
379  module codecvt {
380    header "codecvt"
381    export *
382  }
383  module compare {
384    header "compare"
385    export *
386
387    module __compare {
388      module common_comparison_category { private header "__compare/common_comparison_category.h" }
389      module compare_three_way          { private header "__compare/compare_three_way.h" }
390      module compare_three_way_result   { private header "__compare/compare_three_way_result.h" }
391      module is_eq                      { private header "__compare/is_eq.h" }
392      module ordering                   { private header "__compare/ordering.h" }
393      module partial_order              { private header "__compare/partial_order.h" }
394      module strong_order               { private header "__compare/strong_order.h" }
395      module synth_three_way            { private header "__compare/synth_three_way.h" }
396      module three_way_comparable       { private header "__compare/three_way_comparable.h" }
397      module weak_order                 { private header "__compare/weak_order.h" }
398    }
399  }
400  module complex {
401    header "complex"
402    export *
403  }
404  module concepts {
405    header "concepts"
406    export *
407
408    module __concepts {
409      module arithmetic                 { private header "__concepts/arithmetic.h" }
410      module assignable                 { private header "__concepts/assignable.h" }
411      module boolean_testable           { private header "__concepts/boolean_testable.h" }
412      module class_or_enum              { private header "__concepts/class_or_enum.h" }
413      module common_reference_with      { private header "__concepts/common_reference_with.h" }
414      module common_with                { private header "__concepts/common_with.h" }
415      module constructible              { private header "__concepts/constructible.h" }
416      module convertible_to             { private header "__concepts/convertible_to.h" }
417      module copyable                   { private header "__concepts/copyable.h" }
418      module derived_from               { private header "__concepts/derived_from.h" }
419      module destructible               { private header "__concepts/destructible.h" }
420      module different_from             { private header "__concepts/different_from.h" }
421      module equality_comparable        { private header "__concepts/equality_comparable.h" }
422      module invocable                  { private header "__concepts/invocable.h" }
423      module movable                    { private header "__concepts/movable.h" }
424      module predicate                  { private header "__concepts/predicate.h" }
425      module regular                    { private header "__concepts/regular.h" }
426      module relation                   { private header "__concepts/relation.h" }
427      module same_as                    { private header "__concepts/same_as.h" }
428      module semiregular                { private header "__concepts/semiregular.h" }
429      module swappable                  { private header "__concepts/swappable.h" }
430      module totally_ordered            { private header "__concepts/totally_ordered.h" }
431    }
432  }
433  module condition_variable {
434    header "condition_variable"
435    export *
436  }
437  module coroutine {
438    requires coroutines
439    header "coroutine"
440    export compare
441    export *
442
443    module __coroutine {
444      module coroutine_handle           { private header "__coroutine/coroutine_handle.h" }
445      module coroutine_traits           { private header "__coroutine/coroutine_traits.h" }
446      module noop_coroutine_handle      { private header "__coroutine/noop_coroutine_handle.h" }
447      module trivial_awaitables         { private header "__coroutine/trivial_awaitables.h" }
448    }
449  }
450  module deque {
451    header "deque"
452    export initializer_list
453    export *
454  }
455  module exception {
456    header "exception"
457    export *
458  }
459  module execution {
460    header "execution"
461    export *
462  }
463  module filesystem {
464    header "filesystem"
465    export *
466
467    module __filesystem {
468      module copy_options                 { private header "__filesystem/copy_options.h" }
469      module directory_entry              { private header "__filesystem/directory_entry.h" }
470      module directory_iterator           { private header "__filesystem/directory_iterator.h" }
471      module directory_options            { private header "__filesystem/directory_options.h" }
472      module file_status                  { private header "__filesystem/file_status.h" }
473      module file_time_type               { private header "__filesystem/file_time_type.h" }
474      module file_type                    { private header "__filesystem/file_type.h" }
475      module filesystem_error             { private header "__filesystem/filesystem_error.h" }
476      module operations                   { private header "__filesystem/operations.h" }
477      module path                         { private header "__filesystem/path.h" }
478      module path_iterator                { private header "__filesystem/path_iterator.h" }
479      module perm_options                 { private header "__filesystem/perm_options.h" }
480      module perms                        { private header "__filesystem/perms.h" }
481      module recursive_directory_iterator { private header "__filesystem/recursive_directory_iterator.h" }
482      module space_info                   { private header "__filesystem/space_info.h" }
483      module u8path                       { private header "__filesystem/u8path.h" }
484    }
485  }
486  module format {
487    header "format"
488    export *
489
490    module __format {
491      module format_arg               { private header "__format/format_arg.h" }
492      module format_args              { private header "__format/format_args.h" }
493      module format_context {
494        private header "__format/format_context.h"
495        export optional
496        export locale
497      }
498      module format_error             { private header "__format/format_error.h" }
499      module format_fwd               { private header "__format/format_fwd.h" }
500      module format_parse_context     { private header "__format/format_parse_context.h" }
501      module format_string            { private header "__format/format_string.h" }
502      module format_to_n_result       { private header "__format/format_to_n_result.h" }
503      module formatter                { private header "__format/formatter.h" }
504      module formatter_bool           { private header "__format/formatter_bool.h" }
505      module formatter_char           { private header "__format/formatter_char.h" }
506      module formatter_floating_point { private header "__format/formatter_floating_point.h" }
507      module formatter_integer        { private header "__format/formatter_integer.h" }
508      module formatter_integral       { private header "__format/formatter_integral.h" }
509      module formatter_pointer        { private header "__format/formatter_pointer.h" }
510      module formatter_string         { private header "__format/formatter_string.h" }
511      module parser_std_format_spec   { private header "__format/parser_std_format_spec.h" }
512    }
513  }
514  module forward_list {
515    header "forward_list"
516    export initializer_list
517    export *
518  }
519  module fstream {
520    header "fstream"
521    export *
522  }
523  module functional {
524    header "functional"
525    export *
526
527    module __functional {
528      module binary_function            { private header "__functional/binary_function.h" }
529      module binary_negate              { private header "__functional/binary_negate.h" }
530      module bind                       { private header "__functional/bind.h" }
531      module bind_back                  { private header "__functional/bind_back.h" }
532      module bind_front                 { private header "__functional/bind_front.h" }
533      module binder1st                  { private header "__functional/binder1st.h" }
534      module binder2nd                  { private header "__functional/binder2nd.h" }
535      module compose                    { private header "__functional/compose.h" }
536      module default_searcher           { private header "__functional/default_searcher.h" }
537      module function                   { private header "__functional/function.h" }
538      module hash                       { private header "__functional/hash.h" }
539      module identity                   { private header "__functional/identity.h" }
540      module invoke                     { private header "__functional/invoke.h" }
541      module is_transparent             { private header "__functional/is_transparent.h" }
542      module mem_fn                     { private header "__functional/mem_fn.h" }
543      module mem_fun_ref                { private header "__functional/mem_fun_ref.h" }
544      module not_fn                     { private header "__functional/not_fn.h" }
545      module operations                 { private header "__functional/operations.h" }
546      module perfect_forward            { private header "__functional/perfect_forward.h" }
547      module pointer_to_binary_function { private header "__functional/pointer_to_binary_function.h" }
548      module pointer_to_unary_function  { private header "__functional/pointer_to_unary_function.h" }
549      module ranges_operations          { private header "__functional/ranges_operations.h" }
550      module reference_wrapper          { private header "__functional/reference_wrapper.h" }
551      module unary_function             { private header "__functional/unary_function.h" }
552      module unary_negate               { private header "__functional/unary_negate.h" }
553      module unwrap_ref                 { private header "__functional/unwrap_ref.h" }
554      module weak_result_type           { private header "__functional/weak_result_type.h" }
555    }
556  }
557  module future {
558    header "future"
559    export *
560  }
561  module initializer_list {
562    header "initializer_list"
563    export *
564  }
565  module iomanip {
566    header "iomanip"
567    export *
568  }
569  module ios {
570    header "ios"
571    export iosfwd
572    export *
573  }
574  module iosfwd {
575    header "iosfwd"
576    export *
577  }
578  module iostream {
579    header "iostream"
580    export ios
581    export streambuf
582    export istream
583    export ostream
584    export *
585  }
586  module istream {
587    header "istream"
588    // FIXME: should re-export ios, streambuf?
589    export *
590  }
591  module iterator {
592    header "iterator"
593    export *
594
595    module __iterator {
596      module access                { private header "__iterator/access.h" }
597      module advance               { private header "__iterator/advance.h" }
598      module back_insert_iterator  { private header "__iterator/back_insert_iterator.h" }
599      module common_iterator       { private header "__iterator/common_iterator.h" }
600      module concepts              { private header "__iterator/concepts.h" }
601      module counted_iterator      { private header "__iterator/counted_iterator.h" }
602      module data                  { private header "__iterator/data.h" }
603      module default_sentinel      { private header "__iterator/default_sentinel.h" }
604      module distance              { private header "__iterator/distance.h" }
605      module empty                 { private header "__iterator/empty.h" }
606      module erase_if_container    { private header "__iterator/erase_if_container.h" }
607      module front_insert_iterator { private header "__iterator/front_insert_iterator.h" }
608      module incrementable_traits  { private header "__iterator/incrementable_traits.h" }
609      module indirectly_comparable { private header "__iterator/indirectly_comparable.h" }
610      module insert_iterator       { private header "__iterator/insert_iterator.h" }
611      module istream_iterator      { private header "__iterator/istream_iterator.h" }
612      module istreambuf_iterator   { private header "__iterator/istreambuf_iterator.h" }
613      module iter_move             { private header "__iterator/iter_move.h" }
614      module iter_swap             { private header "__iterator/iter_swap.h" }
615      module iterator              { private header "__iterator/iterator.h" }
616      module iterator_traits       { private header "__iterator/iterator_traits.h" }
617      module move_iterator         { private header "__iterator/move_iterator.h" }
618      module next                  { private header "__iterator/next.h" }
619      module ostream_iterator      { private header "__iterator/ostream_iterator.h" }
620      module ostreambuf_iterator   { private header "__iterator/ostreambuf_iterator.h" }
621      module prev                  { private header "__iterator/prev.h" }
622      module projected             { private header "__iterator/projected.h" }
623      module readable_traits       { private header "__iterator/readable_traits.h" }
624      module reverse_access        { private header "__iterator/reverse_access.h" }
625      module reverse_iterator      { private header "__iterator/reverse_iterator.h" }
626      module size                  { private header "__iterator/size.h" }
627      module unreachable_sentinel  { private header "__iterator/unreachable_sentinel.h" }
628      module wrap_iter             { private header "__iterator/wrap_iter.h" }
629    }
630  }
631  module latch {
632    requires cplusplus14
633    header "latch"
634    export *
635  }
636  module limits {
637    header "limits"
638    export *
639  }
640  module list {
641    header "list"
642    export initializer_list
643    export *
644  }
645  module locale {
646    header "locale"
647    export *
648  }
649  module map {
650    header "map"
651    export initializer_list
652    export *
653  }
654  module memory {
655    header "memory"
656    export *
657
658    module __memory {
659      module addressof                       { private header "__memory/addressof.h" }
660      module allocation_guard                { private header "__memory/allocation_guard.h" }
661      module allocator                       { private header "__memory/allocator.h" }
662      module allocator_arg_t                 { private header "__memory/allocator_arg_t.h" }
663      module allocator_traits                { private header "__memory/allocator_traits.h" }
664      module auto_ptr                        { private header "__memory/auto_ptr.h" }
665      module compressed_pair                 { private header "__memory/compressed_pair.h" }
666      module concepts                        { private header "__memory/concepts.h" }
667      module construct_at                    { private header "__memory/construct_at.h" }
668      module pointer_traits                  { private header "__memory/pointer_traits.h" }
669      module ranges_construct_at             { private header "__memory/ranges_construct_at.h" }
670      module ranges_uninitialized_algorithms { private header "__memory/ranges_uninitialized_algorithms.h" }
671      module raw_storage_iterator            { private header "__memory/raw_storage_iterator.h" }
672      module shared_ptr                      { private header "__memory/shared_ptr.h" }
673      module temporary_buffer                { private header "__memory/temporary_buffer.h" }
674      module uninitialized_algorithms        { private header "__memory/uninitialized_algorithms.h" }
675      module unique_ptr                      { private header "__memory/unique_ptr.h" }
676      module uses_allocator                  { private header "__memory/uses_allocator.h" }
677      module voidify                         { private header "__memory/voidify.h" }
678    }
679  }
680  module mutex {
681    header "mutex"
682    export *
683  }
684  module new {
685    header "new"
686    export *
687  }
688  module numbers {
689    header "numbers"
690    export *
691  }
692  module numeric {
693    header "numeric"
694    export *
695
696    module __numeric {
697      module accumulate               { private header "__numeric/accumulate.h" }
698      module adjacent_difference      { private header "__numeric/adjacent_difference.h" }
699      module exclusive_scan           { private header "__numeric/exclusive_scan.h" }
700      module gcd_lcm                  { private header "__numeric/gcd_lcm.h" }
701      module inclusive_scan           { private header "__numeric/inclusive_scan.h" }
702      module inner_product            { private header "__numeric/inner_product.h" }
703      module iota                     { private header "__numeric/iota.h" }
704      module midpoint                 { private header "__numeric/midpoint.h" }
705      module partial_sum              { private header "__numeric/partial_sum.h" }
706      module reduce                   { private header "__numeric/reduce.h" }
707      module transform_exclusive_scan { private header "__numeric/transform_exclusive_scan.h" }
708      module transform_inclusive_scan { private header "__numeric/transform_inclusive_scan.h" }
709      module transform_reduce         { private header "__numeric/transform_reduce.h" }
710    }
711  }
712  module optional {
713    header "optional"
714    export *
715  }
716  module ostream {
717    header "ostream"
718    // FIXME: should re-export ios, streambuf?
719    export *
720  }
721  module queue {
722    header "queue"
723    export initializer_list
724    export *
725  }
726  module random {
727    header "random"
728    export initializer_list
729    export *
730
731    module __random {
732      module bernoulli_distribution          { private header "__random/bernoulli_distribution.h" }
733      module binomial_distribution           { private header "__random/binomial_distribution.h" }
734      module cauchy_distribution             { private header "__random/cauchy_distribution.h" }
735      module chi_squared_distribution        { private header "__random/chi_squared_distribution.h" }
736      module clamp_to_integral               { private header "__random/clamp_to_integral.h" }
737      module default_random_engine           { private header "__random/default_random_engine.h" }
738      module discard_block_engine            { private header "__random/discard_block_engine.h" }
739      module discrete_distribution           { private header "__random/discrete_distribution.h" }
740      module exponential_distribution        { private header "__random/exponential_distribution.h" }
741      module extreme_value_distribution      { private header "__random/extreme_value_distribution.h" }
742      module fisher_f_distribution           { private header "__random/fisher_f_distribution.h" }
743      module gamma_distribution              { private header "__random/gamma_distribution.h" }
744      module generate_canonical              { private header "__random/generate_canonical.h" }
745      module geometric_distribution          { private header "__random/geometric_distribution.h" }
746      module independent_bits_engine         { private header "__random/independent_bits_engine.h" }
747      module is_seed_sequence                { private header "__random/is_seed_sequence.h" }
748      module knuth_b                         { private header "__random/knuth_b.h" }
749      module linear_congruential_engine      { private header "__random/linear_congruential_engine.h" }
750      module log2                            { private header "__random/log2.h" }
751      module lognormal_distribution          { private header "__random/lognormal_distribution.h" }
752      module mersenne_twister_engine         { private header "__random/mersenne_twister_engine.h" }
753      module negative_binomial_distribution  { private header "__random/negative_binomial_distribution.h" }
754      module normal_distribution             { private header "__random/normal_distribution.h" }
755      module piecewise_constant_distribution { private header "__random/piecewise_constant_distribution.h" }
756      module piecewise_linear_distribution   { private header "__random/piecewise_linear_distribution.h" }
757      module poisson_distribution            { private header "__random/poisson_distribution.h" }
758      module random_device                   { private header "__random/random_device.h" }
759      module ranlux                          { private header "__random/ranlux.h" }
760      module seed_seq                        { private header "__random/seed_seq.h" }
761      module shuffle_order_engine            { private header "__random/shuffle_order_engine.h" }
762      module student_t_distribution          { private header "__random/student_t_distribution.h" }
763      module subtract_with_carry_engine      { private header "__random/subtract_with_carry_engine.h" }
764      module uniform_int_distribution        { private header "__random/uniform_int_distribution.h" }
765      module uniform_random_bit_generator    { private header "__random/uniform_random_bit_generator.h" }
766      module uniform_real_distribution       { private header "__random/uniform_real_distribution.h" }
767      module weibull_distribution            { private header "__random/weibull_distribution.h" }
768    }
769  }
770  module ranges {
771    header "ranges"
772    export compare
773    export initializer_list
774    export iterator
775    export *
776
777    module __ranges {
778      module access                 { private header "__ranges/access.h" }
779      module all                    {
780        private header "__ranges/all.h"
781        export functional.__functional.compose
782        export functional.__functional.perfect_forward
783      }
784      module common_view            { private header "__ranges/common_view.h" }
785      module concepts               { private header "__ranges/concepts.h" }
786      module copyable_box           { private header "__ranges/copyable_box.h" }
787      module counted                {
788        private header "__ranges/counted.h"
789        export span
790      }
791      module dangling               { private header "__ranges/dangling.h" }
792      module data                   { private header "__ranges/data.h" }
793      module drop_view              { private header "__ranges/drop_view.h" }
794      module empty                  { private header "__ranges/empty.h" }
795      module empty_view             { private header "__ranges/empty_view.h" }
796      module enable_borrowed_range  { private header "__ranges/enable_borrowed_range.h" }
797      module enable_view            { private header "__ranges/enable_view.h" }
798      module iota_view              { private header "__ranges/iota_view.h" }
799      module join_view              { private header "__ranges/join_view.h" }
800      module non_propagating_cache  { private header "__ranges/non_propagating_cache.h" }
801      module owning_view            { private header "__ranges/owning_view.h" }
802      module range_adaptor          { private header "__ranges/range_adaptor.h" }
803      module ref_view               { private header "__ranges/ref_view.h" }
804      module reverse_view           { private header "__ranges/reverse_view.h" }
805      module single_view            { private header "__ranges/single_view.h" }
806      module size                   { private header "__ranges/size.h" }
807      module subrange               { private header "__ranges/subrange.h" }
808      module take_view              { private header "__ranges/take_view.h" }
809      module transform_view         {
810        private header "__ranges/transform_view.h"
811        export functional.__functional.bind_back
812        export functional.__functional.perfect_forward
813      }
814      module view_interface         { private header "__ranges/view_interface.h" }
815    }
816  }
817  module ratio {
818    header "ratio"
819    export *
820  }
821  module regex {
822    header "regex"
823    export initializer_list
824    export *
825  }
826  module scoped_allocator {
827    header "scoped_allocator"
828    export *
829  }
830  module semaphore {
831    requires cplusplus14
832    header "semaphore"
833    export *
834  }
835  module set {
836    header "set"
837    export initializer_list
838    export *
839  }
840  module shared_mutex {
841    header "shared_mutex"
842    export version
843  }
844  module span {
845    header "span"
846    export ranges.__ranges.enable_borrowed_range
847    export version
848  }
849  module sstream {
850    header "sstream"
851    // FIXME: should re-export istream, ostream, ios, streambuf, string?
852    export *
853  }
854  module stack {
855    header "stack"
856    export initializer_list
857    export *
858  }
859  module stdexcept {
860    header "stdexcept"
861    export *
862  }
863  module streambuf {
864    header "streambuf"
865    export *
866  }
867  module string {
868    header "string"
869    export initializer_list
870    export string_view
871    export __string
872    export *
873  }
874  module string_view {
875    header "string_view"
876    export initializer_list
877    export __string
878    export *
879  }
880  module strstream {
881    header "strstream"
882    export *
883  }
884  module system_error {
885    header "system_error"
886    export *
887  }
888  module thread {
889    header "thread"
890    export *
891
892    module __thread {
893      module poll_with_backoff    { private header "__thread/poll_with_backoff.h" }
894      module timed_backoff_policy { private header "__thread/timed_backoff_policy.h" }
895    }
896  }
897  module tuple {
898    header "tuple"
899    export *
900  }
901  module type_traits {
902    header "type_traits"
903    export functional.__functional.unwrap_ref
904    export *
905  }
906  module typeindex {
907    header "typeindex"
908    export *
909  }
910  module typeinfo {
911    header "typeinfo"
912    export *
913  }
914  module unordered_map {
915    header "unordered_map"
916    export initializer_list
917    export *
918  }
919  module unordered_set {
920    header "unordered_set"
921    export initializer_list
922    export *
923  }
924  module utility {
925    header "utility"
926    export initializer_list
927    export *
928
929    module __utility {
930      module as_const            { private header "__utility/as_const.h" }
931      module auto_cast           { private header "__utility/auto_cast.h" }
932      module cmp                 { private header "__utility/cmp.h" }
933      module declval             { private header "__utility/declval.h" }
934      module exchange            { private header "__utility/exchange.h" }
935      module forward             { private header "__utility/forward.h" }
936      module in_place            { private header "__utility/in_place.h" }
937      module integer_sequence    { private header "__utility/integer_sequence.h" }
938      module move                { private header "__utility/move.h" }
939      module pair                { private header "__utility/pair.h" }
940      module piecewise_construct { private header "__utility/piecewise_construct.h" }
941      module priority_tag        { private header "__utility/priority_tag.h" }
942      module rel_ops             { private header "__utility/rel_ops.h" }
943      module swap                { private header "__utility/swap.h" }
944      module to_underlying       { private header "__utility/to_underlying.h" }
945      module transaction         { private header "__utility/transaction.h" }
946    }
947  }
948  module valarray {
949    header "valarray"
950    export initializer_list
951    export *
952  }
953  module variant {
954    header "variant"
955    export *
956
957    module __variant {
958      module monostate { private header "__variant/monostate.h" }
959    }
960  }
961  module vector {
962    header "vector"
963    export initializer_list
964    export *
965  }
966  module version {
967    header "version"
968    export *
969  }
970
971  // __config not modularised due to a bug in Clang
972  // FIXME: These should be private.
973  module __availability      { private header "__availability"      export * }
974  module __bit_reference     { private header "__bit_reference"     export * }
975  module __bits              { private header "__bits"              export * }
976  module __debug             {         header "__debug"             export * }
977  module __errc              { private header "__errc"              export * }
978  module __hash_table        {         header "__hash_table"        export * }
979  module __locale            { private header "__locale"            export * }
980  module __mbstate_t         { private header "__mbstate_t.h"       export * }
981  module __mutex_base        { private header "__mutex_base"        export * }
982  module __node_handle       { private header "__node_handle"       export * }
983  module __nullptr           {         header "__nullptr"           export * }
984  module __split_buffer      { private header "__split_buffer"      export * }
985  module __std_stream        { private header "__std_stream"        export * }
986  module __string            { private header "__string"            export * }
987  module __threading_support {         header "__threading_support" export * }
988  module __tree              {         header "__tree"              export * }
989  module __tuple             { private header "__tuple"             export * }
990  module __undef_macros      {         header "__undef_macros"      export * }
991
992  module experimental {
993    requires cplusplus11
994
995    module algorithm {
996      header "experimental/algorithm"
997      export *
998    }
999     module coroutine {
1000      requires coroutines
1001      header "experimental/coroutine"
1002      export *
1003    }
1004    module deque {
1005      header "experimental/deque"
1006      export *
1007    }
1008    module filesystem {
1009      header "experimental/filesystem"
1010      export *
1011    }
1012    module forward_list {
1013      header "experimental/forward_list"
1014      export *
1015    }
1016    module functional {
1017      header "experimental/functional"
1018      export *
1019    }
1020    module iterator {
1021      header "experimental/iterator"
1022      export *
1023    }
1024    module list {
1025      header "experimental/list"
1026      export *
1027    }
1028    module map {
1029      header "experimental/map"
1030      export *
1031    }
1032    module memory_resource {
1033      header "experimental/memory_resource"
1034      export *
1035    }
1036    module propagate_const {
1037      header "experimental/propagate_const"
1038      export *
1039    }
1040    module regex {
1041      header "experimental/regex"
1042      export *
1043    }
1044    module simd {
1045      header "experimental/simd"
1046      export *
1047    }
1048    module set {
1049      header "experimental/set"
1050      export *
1051    }
1052    module span {
1053      header "span"
1054      export *
1055    }
1056    module string {
1057      header "experimental/string"
1058      export *
1059    }
1060    module type_traits {
1061      header "experimental/type_traits"
1062      export *
1063    }
1064    module unordered_map {
1065      header "experimental/unordered_map"
1066      export *
1067    }
1068    module unordered_set {
1069      header "experimental/unordered_set"
1070      export *
1071    }
1072    module utility {
1073      header "experimental/utility"
1074      export *
1075    }
1076    module vector {
1077      header "experimental/vector"
1078      export *
1079    }
1080    // FIXME these should be private
1081    module __memory {
1082      header "experimental/__memory"
1083      export *
1084    }
1085  } // end experimental
1086}
1087