blob: 5c0b0f9bd2b9e82a3b760ebe7fdb4acba2d52b16 [file] [log] [blame]
Eric Fiselier62b959c2016-12-08 06:37:41 +00001// 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
Richard Smith31cfef02014-05-21 00:33:49 +00008module std [system] {
Eric Fiselier62b959c2016-12-08 06:37:41 +00009 export std_config
Richard Smith31cfef02014-05-21 00:33:49 +000010 // 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++.
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000014
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 }
Eric Fiselier5dddf722019-02-11 23:47:19 +000027 module fenv_h {
28 header "fenv.h"
29 export *
30 }
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000031 // <float.h> provided by compiler or C library.
32 module inttypes_h {
33 header "inttypes.h"
34 export stdint_h
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000035 export *
36 }
37 // <iso646.h> provided by compiler.
38 // <limits.h> provided by compiler or C library.
Eric Fiselierc6213332016-11-19 01:14:15 +000039 module locale_h {
40 header "locale.h"
Eric Fiselierc6213332016-11-19 01:14:15 +000041 export *
42 }
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000043 module math_h {
44 header "math.h"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000045 export *
46 }
47 module setjmp_h {
48 header "setjmp.h"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000049 export *
50 }
51 // FIXME: <stdalign.h> is missing.
52 // <signal.h> provided by C library.
53 // <stdarg.h> provided by compiler.
Eric Fiselier5163fa12016-12-06 09:48:32 +000054 // <stdbool.h> provided by compiler.
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000055 module stddef_h {
56 // <stddef.h>'s __need_* macros require textual inclusion.
57 textual header "stddef.h"
58 }
Eric Fiseliercbda4fb2016-11-22 20:05:19 +000059 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 }
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000066 module stdio_h {
67 // <stdio.h>'s __need_* macros require textual inclusion.
68 textual header "stdio.h"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000069 export *
Eric Fiselier3b733092016-12-06 07:40:46 +000070 export Darwin.C.stdio
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000071 }
72 module stdlib_h {
73 // <stdlib.h>'s __need_* macros require textual inclusion.
74 textual header "stdlib.h"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000075 export *
76 }
77 module string_h {
78 header "string.h"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000079 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"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000086 export *
87 }
88 module wctype_h {
89 header "wctype.h"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000090 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"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000125 export *
126 }
127 module cfenv {
128 header "cfenv"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000129 export *
130 }
131 module cfloat {
132 header "cfloat"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000133 export *
134 }
135 module cinttypes {
136 header "cinttypes"
137 export cstdint
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000138 export *
139 }
140 module ciso646 {
141 header "ciso646"
142 export *
143 }
144 module climits {
145 header "climits"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000146 export *
147 }
148 module clocale {
149 header "clocale"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000150 export *
151 }
152 module cmath {
153 header "cmath"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000154 export *
155 }
156 module csetjmp {
157 header "csetjmp"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000158 export *
159 }
160 module csignal {
161 header "csignal"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000162 export *
163 }
164 // FIXME: <cstdalign> is missing.
165 module cstdarg {
166 header "cstdarg"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000167 export *
168 }
169 module cstdbool {
170 header "cstdbool"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000171 export *
172 }
173 module cstddef {
174 header "cstddef"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000175 export *
176 }
177 module cstdint {
178 header "cstdint"
Eric Fiseliercbda4fb2016-11-22 20:05:19 +0000179 export depr.stdint_h
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000180 export *
181 }
182 module cstdio {
183 header "cstdio"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000184 export *
185 }
186 module cstdlib {
187 header "cstdlib"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000188 export *
189 }
190 module cstring {
191 header "cstring"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000192 export *
193 }
194 module ctgmath {
195 header "ctgmath"
196 export ccomplex
197 export cmath
198 export *
199 }
200 module ctime {
201 header "ctime"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000202 export *
203 }
204 // FIXME: <cuchar> is missing.
205 module cwchar {
206 header "cwchar"
Eric Fiselier3b733092016-12-06 07:40:46 +0000207 export depr.stdio_h
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000208 export *
209 }
210 module cwctype {
211 header "cwctype"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000212 export *
213 }
214 }
215
Richard Smith31cfef02014-05-21 00:33:49 +0000216 module algorithm {
217 header "algorithm"
218 export initializer_list
219 export *
Louis Dionnea60dd872021-06-17 11:30:11 -0400220
221 module __algorithm {
222 module adjacent_find { header "__algorithm/adjacent_find.h" }
223 module all_of { header "__algorithm/all_of.h" }
224 module any_of { header "__algorithm/any_of.h" }
225 module binary_search { header "__algorithm/binary_search.h" }
226 module clamp { header "__algorithm/clamp.h" }
227 module comp { header "__algorithm/comp.h" }
228 module comp_ref_type { header "__algorithm/comp_ref_type.h" }
229 module copy { header "__algorithm/copy.h" }
230 module copy_backward { header "__algorithm/copy_backward.h" }
231 module copy_if { header "__algorithm/copy_if.h" }
232 module copy_n { header "__algorithm/copy_n.h" }
233 module count { header "__algorithm/count.h" }
234 module count_if { header "__algorithm/count_if.h" }
235 module equal { header "__algorithm/equal.h" }
236 module equal_range { header "__algorithm/equal_range.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400237 module fill { header "__algorithm/fill.h" }
Louis Dionne611b72f2021-07-05 09:25:15 -0400238 module fill_n { header "__algorithm/fill_n.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400239 module find { header "__algorithm/find.h" }
240 module find_end { header "__algorithm/find_end.h" }
241 module find_first_of { header "__algorithm/find_first_of.h" }
242 module find_if { header "__algorithm/find_if.h" }
243 module find_if_not { header "__algorithm/find_if_not.h" }
244 module for_each { header "__algorithm/for_each.h" }
245 module for_each_n { header "__algorithm/for_each_n.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400246 module generate { header "__algorithm/generate.h" }
Louis Dionne611b72f2021-07-05 09:25:15 -0400247 module generate_n { header "__algorithm/generate_n.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400248 module half_positive { header "__algorithm/half_positive.h" }
249 module includes { header "__algorithm/includes.h" }
250 module inplace_merge { header "__algorithm/inplace_merge.h" }
251 module is_heap { header "__algorithm/is_heap.h" }
252 module is_heap_until { header "__algorithm/is_heap_until.h" }
253 module is_partitioned { header "__algorithm/is_partitioned.h" }
254 module is_permutation { header "__algorithm/is_permutation.h" }
255 module is_sorted { header "__algorithm/is_sorted.h" }
256 module is_sorted_until { header "__algorithm/is_sorted_until.h" }
257 module lexicographical_compare { header "__algorithm/lexicographical_compare.h" }
258 module lower_bound { header "__algorithm/lower_bound.h" }
259 module make_heap { header "__algorithm/make_heap.h" }
260 module max { header "__algorithm/max.h" }
261 module max_element { header "__algorithm/max_element.h" }
262 module merge { header "__algorithm/merge.h" }
263 module min { header "__algorithm/min.h" }
264 module min_element { header "__algorithm/min_element.h" }
265 module minmax { header "__algorithm/minmax.h" }
266 module minmax_element { header "__algorithm/minmax_element.h" }
267 module mismatch { header "__algorithm/mismatch.h" }
268 module move { header "__algorithm/move.h" }
269 module move_backward { header "__algorithm/move_backward.h" }
270 module next_permutation { header "__algorithm/next_permutation.h" }
271 module none_of { header "__algorithm/none_of.h" }
272 module nth_element { header "__algorithm/nth_element.h" }
273 module partial_sort { header "__algorithm/partial_sort.h" }
274 module partial_sort_copy { header "__algorithm/partial_sort_copy.h" }
275 module partition { header "__algorithm/partition.h" }
276 module partition_copy { header "__algorithm/partition_copy.h" }
277 module partition_point { header "__algorithm/partition_point.h" }
278 module pop_heap { header "__algorithm/pop_heap.h" }
279 module prev_permutation { header "__algorithm/prev_permutation.h" }
280 module push_heap { header "__algorithm/push_heap.h" }
281 module remove { header "__algorithm/remove.h" }
282 module remove_copy { header "__algorithm/remove_copy.h" }
283 module remove_copy_if { header "__algorithm/remove_copy_if.h" }
284 module remove_if { header "__algorithm/remove_if.h" }
285 module replace { header "__algorithm/replace.h" }
286 module replace_copy { header "__algorithm/replace_copy.h" }
287 module replace_copy_if { header "__algorithm/replace_copy_if.h" }
288 module replace_if { header "__algorithm/replace_if.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400289 module reverse { header "__algorithm/reverse.h" }
Louis Dionne611b72f2021-07-05 09:25:15 -0400290 module reverse_copy { header "__algorithm/reverse_copy.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400291 module rotate { header "__algorithm/rotate.h" }
Louis Dionne611b72f2021-07-05 09:25:15 -0400292 module rotate_copy { header "__algorithm/rotate_copy.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400293 module sample { header "__algorithm/sample.h" }
294 module search { header "__algorithm/search.h" }
295 module search_n { header "__algorithm/search_n.h" }
296 module set_difference { header "__algorithm/set_difference.h" }
297 module set_intersection { header "__algorithm/set_intersection.h" }
298 module set_symmetric_difference { header "__algorithm/set_symmetric_difference.h" }
299 module set_union { header "__algorithm/set_union.h" }
300 module shift_left { header "__algorithm/shift_left.h" }
301 module shift_right { header "__algorithm/shift_right.h" }
302 module shuffle { header "__algorithm/shuffle.h" }
303 module sift_down { header "__algorithm/sift_down.h" }
304 module sort { header "__algorithm/sort.h" }
305 module sort_heap { header "__algorithm/sort_heap.h" }
306 module stable_partition { header "__algorithm/stable_partition.h" }
307 module stable_sort { header "__algorithm/stable_sort.h" }
308 module transform { header "__algorithm/transform.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400309 module unique { header "__algorithm/unique.h" }
Louis Dionne611b72f2021-07-05 09:25:15 -0400310 module unique_copy { header "__algorithm/unique_copy.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400311 module unwrap_iter { header "__algorithm/unwrap_iter.h" }
312 module upper_bound { header "__algorithm/upper_bound.h" }
313 }
Richard Smith31cfef02014-05-21 00:33:49 +0000314 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000315 module any {
316 header "any"
317 export *
318 }
Richard Smith31cfef02014-05-21 00:33:49 +0000319 module array {
320 header "array"
321 export initializer_list
322 export *
323 }
324 module atomic {
325 header "atomic"
326 export *
Richard Smith31cfef02014-05-21 00:33:49 +0000327 }
Olivier Giroux161e6e82020-02-18 09:58:34 -0500328 module barrier {
Raphael Isemann95e3ba22020-02-24 20:20:54 +0100329 requires cplusplus14
Olivier Giroux161e6e82020-02-18 09:58:34 -0500330 header "barrier"
331 export *
332 }
Marshall Clowbf32ec92018-08-17 16:07:48 +0000333 module bit {
334 header "bit"
335 export *
336 }
Richard Smith31cfef02014-05-21 00:33:49 +0000337 module bitset {
338 header "bitset"
339 export string
340 export iosfwd
341 export *
342 }
343 // No submodule for cassert. It fundamentally needs repeated, textual inclusion.
Zhihao Yuan7bf19052018-08-01 02:38:30 +0000344 module charconv {
345 header "charconv"
346 export *
347 }
Richard Smith31cfef02014-05-21 00:33:49 +0000348 module chrono {
349 header "chrono"
350 export *
351 }
Richard Smith31cfef02014-05-21 00:33:49 +0000352 module codecvt {
353 header "codecvt"
354 export *
355 }
Eric Fiseliere0074fc2018-04-06 21:37:23 +0000356 module compare {
357 header "compare"
358 export *
359 }
Richard Smith31cfef02014-05-21 00:33:49 +0000360 module complex {
361 header "complex"
362 export *
363 }
Eric Fiselierd59a0322020-04-08 18:00:13 -0400364 module concepts {
365 header "concepts"
366 export *
367 }
Richard Smith31cfef02014-05-21 00:33:49 +0000368 module condition_variable {
369 header "condition_variable"
370 export *
371 }
Richard Smith31cfef02014-05-21 00:33:49 +0000372 module deque {
373 header "deque"
374 export initializer_list
375 export *
376 }
377 module exception {
378 header "exception"
379 export *
380 }
Louis Dionne59d0b3c2019-08-05 18:29:14 +0000381 module execution {
382 header "execution"
383 export *
384 }
Eric Fiselier02cea5e2018-07-27 03:07:09 +0000385 module filesystem {
386 header "filesystem"
387 export *
388 }
Mark de Weverdf5fd832020-11-26 19:12:18 +0100389 module format {
390 header "format"
391 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000392
393 module __format {
394 module format_error { header "__format/format_error.h" }
395 module format_parse_context { header "__format/format_parse_context.h" }
396 }
Mark de Weverdf5fd832020-11-26 19:12:18 +0100397 }
Richard Smith31cfef02014-05-21 00:33:49 +0000398 module forward_list {
399 header "forward_list"
400 export initializer_list
401 export *
402 }
403 module fstream {
404 header "fstream"
405 export *
406 }
407 module functional {
408 header "functional"
409 export *
Christopher Di Bella55d7a822021-07-01 09:25:35 -0400410
Louis Dionnea60dd872021-06-17 11:30:11 -0400411 module __functional {
Christopher Di Bella55d7a822021-07-01 09:25:35 -0400412 module binary_function { header "__functional/binary_function.h" }
413 module binary_negate { header "__functional/binary_negate.h" }
414 module bind { header "__functional/bind.h" }
415 module bind_front { header "__functional/bind_front.h" }
416 module binder1st { header "__functional/binder1st.h" }
417 module binder2nd { header "__functional/binder2nd.h" }
418 module default_searcher { header "__functional/default_searcher.h" }
419 module function { header "__functional/function.h" }
420 module hash { header "__functional/hash.h" }
421 module identity { header "__functional/identity.h" }
422 module invoke { header "__functional/invoke.h" }
423 module mem_fn { header "__functional/mem_fn.h" }
424 module mem_fun_ref { header "__functional/mem_fun_ref.h" }
425 module not_fn { header "__functional/not_fn.h" }
426 module operations { header "__functional/operations.h" }
427 module perfect_forward { header "__functional/perfect_forward.h" }
428 module pointer_to_binary_function { header "__functional/pointer_to_binary_function.h" }
429 module pointer_to_unary_function { header "__functional/pointer_to_unary_function.h" }
430 module ranges_operations { header "__functional/ranges_operations.h" }
431 module reference_wrapper { header "__functional/reference_wrapper.h" }
432 module unary_function { header "__functional/unary_function.h" }
433 module unary_negate { header "__functional/unary_negate.h" }
434 module unwrap_ref { header "__functional/unwrap_ref.h" }
435 module weak_result_type { header "__functional/weak_result_type.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400436 }
Richard Smith31cfef02014-05-21 00:33:49 +0000437 }
438 module future {
439 header "future"
440 export *
441 }
442 module initializer_list {
443 header "initializer_list"
444 export *
445 }
446 module iomanip {
447 header "iomanip"
448 export *
449 }
450 module ios {
451 header "ios"
452 export iosfwd
453 export *
454 }
455 module iosfwd {
456 header "iosfwd"
457 export *
458 }
459 module iostream {
460 header "iostream"
461 export ios
462 export streambuf
463 export istream
464 export ostream
465 export *
466 }
467 module istream {
468 header "istream"
469 // FIXME: should re-export ios, streambuf?
470 export *
471 }
472 module iterator {
473 header "iterator"
474 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000475
476 module __iterator {
Christopher Di Bellac7674cd2021-06-29 02:32:59 +0000477 module access { header "__iterator/access.h" }
478 module advance { header "__iterator/advance.h" }
479 module back_insert_iterator { header "__iterator/back_insert_iterator.h" }
480 module concepts { header "__iterator/concepts.h" }
481 module data { header "__iterator/data.h" }
482 module default_sentinel { header "__iterator/default_sentinel.h" }
483 module distance { header "__iterator/distance.h" }
484 module empty { header "__iterator/empty.h" }
485 module erase_if_container { header "__iterator/erase_if_container.h" }
486 module front_insert_iterator { header "__iterator/front_insert_iterator.h" }
487 module incrementable_traits { header "__iterator/incrementable_traits.h" }
488 module insert_iterator { header "__iterator/insert_iterator.h" }
489 module istreambuf_iterator { header "__iterator/istreambuf_iterator.h" }
490 module istream_iterator { header "__iterator/istream_iterator.h" }
491 module iterator { header "__iterator/iterator.h" }
492 module iterator_traits { header "__iterator/iterator_traits.h" }
493 module iter_move { header "__iterator/iter_move.h" }
494 module iter_swap { header "__iterator/iter_swap.h" }
495 module move_iterator { header "__iterator/move_iterator.h" }
496 module next { header "__iterator/next.h" }
497 module ostreambuf_iterator { header "__iterator/ostreambuf_iterator.h" }
498 module ostream_iterator { header "__iterator/ostream_iterator.h" }
499 module prev { header "__iterator/prev.h" }
500 module projected { header "__iterator/projected.h" }
501 module readable_traits { header "__iterator/readable_traits.h" }
502 module reverse_access { header "__iterator/reverse_access.h" }
503 module reverse_iterator { header "__iterator/reverse_iterator.h" }
504 module size { header "__iterator/size.h" }
505 module wrap_iter { header "__iterator/wrap_iter.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000506 }
Richard Smith31cfef02014-05-21 00:33:49 +0000507 }
Olivier Giroux161e6e82020-02-18 09:58:34 -0500508 module latch {
Raphael Isemann95e3ba22020-02-24 20:20:54 +0100509 requires cplusplus14
Olivier Giroux161e6e82020-02-18 09:58:34 -0500510 header "latch"
511 export *
512 }
Richard Smith31cfef02014-05-21 00:33:49 +0000513 module limits {
514 header "limits"
515 export *
516 }
517 module list {
518 header "list"
519 export initializer_list
520 export *
521 }
522 module locale {
523 header "locale"
524 export *
525 }
526 module map {
527 header "map"
528 export initializer_list
529 export *
530 }
531 module memory {
532 header "memory"
533 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000534
535 module __memory {
536 module addressof { header "__memory/addressof.h" }
537 module allocation_guard { header "__memory/allocation_guard.h" }
538 module allocator_traits { header "__memory/allocator_traits.h" }
Christopher Di Bella55d7a822021-07-01 09:25:35 -0400539 module allocator_arg_t { header "__memory/allocator_arg_t.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000540 module allocator { header "__memory/allocator.h" }
541 module auto_ptr { header "__memory/auto_ptr.h" }
542 module compressed_pair { header "__memory/compressed_pair.h" }
543 module construct_at { header "__memory/construct_at.h" }
544 module pointer_safety { header "__memory/pointer_safety.h" }
545 module pointer_traits { header "__memory/pointer_traits.h" }
546 module raw_storage_iterator { header "__memory/raw_storage_iterator.h" }
547 module shared_ptr { header "__memory/shared_ptr.h" }
548 module temporary_buffer { header "__memory/temporary_buffer.h" }
549 module uninitialized_algorithms { header "__memory/uninitialized_algorithms.h" }
550 module unique_ptr { header "__memory/unique_ptr.h" }
551 }
Richard Smith31cfef02014-05-21 00:33:49 +0000552 }
553 module mutex {
554 header "mutex"
555 export *
556 }
557 module new {
558 header "new"
559 export *
560 }
Raul Tambreafcedea2020-06-19 12:43:33 +0530561 module numbers {
562 header "numbers"
563 export *
564 }
Richard Smith31cfef02014-05-21 00:33:49 +0000565 module numeric {
566 header "numeric"
567 export *
568 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000569 module optional {
570 header "optional"
571 export *
572 }
Richard Smith31cfef02014-05-21 00:33:49 +0000573 module ostream {
574 header "ostream"
575 // FIXME: should re-export ios, streambuf?
576 export *
577 }
578 module queue {
579 header "queue"
580 export initializer_list
581 export *
582 }
583 module random {
584 header "random"
585 export initializer_list
586 export *
Louis Dionnea60dd872021-06-17 11:30:11 -0400587
588 module __random {
589 module uniform_int_distribution { header "__random/uniform_int_distribution.h" }
590 }
Richard Smith31cfef02014-05-21 00:33:49 +0000591 }
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100592 module ranges {
593 header "ranges"
Christopher Di Bella66ce1292021-04-11 05:08:32 +0000594 export compare
595 export initializer_list
596 export iterator
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100597 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000598
599 module __ranges {
Christopher Di Bella8539fc62021-06-16 19:12:51 +0000600 module access { header "__ranges/access.h" }
Louis Dionnec46ba712021-06-22 13:47:32 -0400601 module all { header "__ranges/all.h" }
Christopher Di Bella8539fc62021-06-16 19:12:51 +0000602 module concepts { header "__ranges/concepts.h" }
603 module data { header "__ranges/data.h" }
604 module empty { header "__ranges/empty.h" }
605 module empty_view { header "__ranges/empty_view.h" }
606 module enable_borrowed_range { header "__ranges/enable_borrowed_range.h" }
607 module enable_view { header "__ranges/enable_view.h" }
608 module ref_view { header "__ranges/ref_view.h" }
609 module size { header "__ranges/size.h" }
610 module subrange { header "__ranges/subrange.h" }
611 module view_interface { header "__ranges/view_interface.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000612 }
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100613 }
Richard Smith31cfef02014-05-21 00:33:49 +0000614 module ratio {
615 header "ratio"
616 export *
617 }
618 module regex {
619 header "regex"
620 export initializer_list
621 export *
622 }
623 module scoped_allocator {
624 header "scoped_allocator"
625 export *
626 }
Olivier Giroux161e6e82020-02-18 09:58:34 -0500627 module semaphore {
Raphael Isemann95e3ba22020-02-24 20:20:54 +0100628 requires cplusplus14
Olivier Giroux161e6e82020-02-18 09:58:34 -0500629 header "semaphore"
630 export *
631 }
Richard Smith31cfef02014-05-21 00:33:49 +0000632 module set {
633 header "set"
634 export initializer_list
635 export *
636 }
637 module sstream {
638 header "sstream"
639 // FIXME: should re-export istream, ostream, ios, streambuf, string?
640 export *
641 }
642 module stack {
643 header "stack"
644 export initializer_list
645 export *
646 }
647 module stdexcept {
648 header "stdexcept"
649 export *
650 }
651 module streambuf {
652 header "streambuf"
653 export *
654 }
655 module string {
656 header "string"
657 export initializer_list
Eric Fiselier2d357f72016-12-05 23:53:23 +0000658 export string_view
659 export __string
660 export *
661 }
662 module string_view {
663 header "string_view"
664 export initializer_list
665 export __string
Richard Smith31cfef02014-05-21 00:33:49 +0000666 export *
667 }
668 module strstream {
669 header "strstream"
Eric Fiselierbdc20862016-12-05 23:16:07 +0000670 export *
Richard Smith31cfef02014-05-21 00:33:49 +0000671 }
672 module system_error {
673 header "system_error"
674 export *
675 }
676 module thread {
677 header "thread"
678 export *
679 }
680 module tuple {
681 header "tuple"
682 export *
683 }
684 module type_traits {
685 header "type_traits"
Christopher Di Bella599a6c62021-06-09 23:10:17 +0000686 export functional.__functional.unwrap_ref
Richard Smith31cfef02014-05-21 00:33:49 +0000687 export *
688 }
689 module typeindex {
690 header "typeindex"
691 export *
692 }
693 module typeinfo {
694 header "typeinfo"
695 export *
696 }
697 module unordered_map {
698 header "unordered_map"
699 export initializer_list
700 export *
701 }
702 module unordered_set {
703 header "unordered_set"
704 export initializer_list
705 export *
706 }
707 module utility {
708 header "utility"
709 export initializer_list
710 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000711
712 module __utility {
Christopher Di Bella599a6c62021-06-09 23:10:17 +0000713 module __decay_copy { header "__utility/__decay_copy.h" }
714 module as_const { header "__utility/as_const.h" }
715 module cmp { header "__utility/cmp.h" }
716 module declval { header "__utility/declval.h" }
717 module exchange { header "__utility/exchange.h" }
718 module forward { header "__utility/forward.h" }
719 module in_place { header "__utility/in_place.h" }
720 module integer_sequence { header "__utility/integer_sequence.h" }
721 module move { header "__utility/move.h" }
722 module pair { header "__utility/pair.h" }
723 module piecewise_construct { header "__utility/piecewise_construct.h" }
724 module rel_ops { header "__utility/rel_ops.h" }
725 module swap { header "__utility/swap.h" }
726 module to_underlying { header "__utility/to_underlying.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000727 }
Richard Smith31cfef02014-05-21 00:33:49 +0000728 }
729 module valarray {
730 header "valarray"
731 export initializer_list
732 export *
733 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000734 module variant {
735 header "variant"
736 export *
737 }
Richard Smith31cfef02014-05-21 00:33:49 +0000738 module vector {
739 header "vector"
740 export initializer_list
741 export *
742 }
Eric Fiseliera604a7d2018-04-04 04:21:54 +0000743 module version {
744 header "version"
745 export *
746 }
Richard Smith31cfef02014-05-21 00:33:49 +0000747
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000748 // __config not modularised due to a bug in Clang
749 // __functional(_03)?_base not modularised since it's designed for textual inclusion
750 // libcpp_version not modularised since it's just a version number
Richard Smith31cfef02014-05-21 00:33:49 +0000751 // FIXME: These should be private.
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000752 module __availability { header "__availability" export * }
753 module __bit_reference { header "__bit_reference" export * }
754 module __bits { header "__bits" export * }
755 module __debug { header "__debug" export * }
756 module __errc { header "__errc" export * }
757 module __function_like { header "__function_like.h" export * }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000758 module __hash_table { header "__hash_table" export * }
759 module __locale { header "__locale" export * }
760 module __mutex_base { header "__mutex_base" export * }
761 module __node_handle { header "__node_handle" export * }
762 module __nullptr { header "__nullptr" export * }
763 module __split_buffer { header "__split_buffer" export * }
764 module __std_stream { header "__std_stream" export * }
765 module __string { header "__string" export * }
Petr Hosek5f4e91c2021-06-07 11:29:03 -0700766 module __threading_support { header "__threading_support" export * }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000767 module __tree { header "__tree" export * }
768 module __tuple { header "__tuple" export * }
769 module __undef_macros { header "__undef_macros" export * }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000770
771 module experimental {
Eric Fiselier92ae1af2016-12-06 01:34:24 +0000772 requires cplusplus11
773
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000774 module algorithm {
775 header "experimental/algorithm"
776 export *
777 }
Eric Fiselierf0426152017-05-25 23:39:29 +0000778 module coroutine {
Eric Fiseliere4a3dab2017-05-29 23:17:28 +0000779 requires coroutines
Eric Fiselierf0426152017-05-25 23:39:29 +0000780 header "experimental/coroutine"
781 export *
782 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000783 module deque {
784 header "experimental/deque"
785 export *
786 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000787 module filesystem {
788 header "experimental/filesystem"
789 export *
790 }
791 module forward_list {
792 header "experimental/forward_list"
793 export *
794 }
795 module functional {
796 header "experimental/functional"
797 export *
798 }
799 module iterator {
800 header "experimental/iterator"
801 export *
802 }
803 module list {
804 header "experimental/list"
805 export *
806 }
807 module map {
808 header "experimental/map"
809 export *
810 }
811 module memory_resource {
812 header "experimental/memory_resource"
813 export *
814 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000815 module propagate_const {
816 header "experimental/propagate_const"
817 export *
818 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000819 module regex {
820 header "experimental/regex"
821 export *
822 }
Tim Shen158e51b2018-04-23 21:54:06 +0000823 module simd {
824 header "experimental/simd"
825 export *
826 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000827 module set {
828 header "experimental/set"
829 export *
830 }
Marshall Clowd2ad87e2018-07-24 03:01:02 +0000831 module span {
832 header "span"
833 export *
834 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000835 module string {
836 header "experimental/string"
837 export *
838 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000839 module type_traits {
840 header "experimental/type_traits"
841 export *
842 }
843 module unordered_map {
844 header "experimental/unordered_map"
845 export *
846 }
847 module unordered_set {
848 header "experimental/unordered_set"
849 export *
850 }
851 module utility {
852 header "experimental/utility"
853 export *
854 }
855 module vector {
856 header "experimental/vector"
857 export *
858 }
859 // FIXME these should be private
860 module __memory {
861 header "experimental/__memory"
862 export *
863 }
864 } // end experimental
Richard Smith31cfef02014-05-21 00:33:49 +0000865}