blob: 2054186bf940b75479c4f6d6e95ab61abe225f82 [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 {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000222 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 includes { private header "__algorithm/includes.h" }
250 module inplace_merge { private header "__algorithm/inplace_merge.h" }
251 module is_heap { private header "__algorithm/is_heap.h" }
252 module is_heap_until { private header "__algorithm/is_heap_until.h" }
253 module is_partitioned { private header "__algorithm/is_partitioned.h" }
254 module is_permutation { private header "__algorithm/is_permutation.h" }
255 module is_sorted { private header "__algorithm/is_sorted.h" }
256 module is_sorted_until { private header "__algorithm/is_sorted_until.h" }
257 module iter_swap { private header "__algorithm/iter_swap.h" }
258 module lexicographical_compare { private header "__algorithm/lexicographical_compare.h" }
259 module lower_bound { private header "__algorithm/lower_bound.h" }
260 module make_heap { private header "__algorithm/make_heap.h" }
261 module max { private header "__algorithm/max.h" }
262 module max_element { private header "__algorithm/max_element.h" }
263 module merge { private header "__algorithm/merge.h" }
264 module min { private header "__algorithm/min.h" }
265 module min_element { private header "__algorithm/min_element.h" }
266 module minmax { private header "__algorithm/minmax.h" }
267 module minmax_element { private header "__algorithm/minmax_element.h" }
268 module mismatch { private header "__algorithm/mismatch.h" }
269 module move { private header "__algorithm/move.h" }
270 module move_backward { private header "__algorithm/move_backward.h" }
271 module next_permutation { private header "__algorithm/next_permutation.h" }
272 module none_of { private header "__algorithm/none_of.h" }
273 module nth_element { private header "__algorithm/nth_element.h" }
274 module partial_sort { private header "__algorithm/partial_sort.h" }
275 module partial_sort_copy { private header "__algorithm/partial_sort_copy.h" }
276 module partition { private header "__algorithm/partition.h" }
277 module partition_copy { private header "__algorithm/partition_copy.h" }
278 module partition_point { private header "__algorithm/partition_point.h" }
279 module pop_heap { private header "__algorithm/pop_heap.h" }
280 module prev_permutation { private header "__algorithm/prev_permutation.h" }
281 module push_heap { private header "__algorithm/push_heap.h" }
282 module remove { private header "__algorithm/remove.h" }
283 module remove_copy { private header "__algorithm/remove_copy.h" }
284 module remove_copy_if { private header "__algorithm/remove_copy_if.h" }
285 module remove_if { private header "__algorithm/remove_if.h" }
286 module replace { private header "__algorithm/replace.h" }
287 module replace_copy { private header "__algorithm/replace_copy.h" }
288 module replace_copy_if { private header "__algorithm/replace_copy_if.h" }
289 module replace_if { private header "__algorithm/replace_if.h" }
290 module reverse { private header "__algorithm/reverse.h" }
291 module reverse_copy { private header "__algorithm/reverse_copy.h" }
292 module rotate { private header "__algorithm/rotate.h" }
293 module rotate_copy { private header "__algorithm/rotate_copy.h" }
294 module sample { private header "__algorithm/sample.h" }
295 module search { private header "__algorithm/search.h" }
296 module search_n { private header "__algorithm/search_n.h" }
297 module set_difference { private header "__algorithm/set_difference.h" }
298 module set_intersection { private header "__algorithm/set_intersection.h" }
299 module set_symmetric_difference { private header "__algorithm/set_symmetric_difference.h" }
300 module set_union { private header "__algorithm/set_union.h" }
301 module shift_left { private header "__algorithm/shift_left.h" }
302 module shift_right { private header "__algorithm/shift_right.h" }
303 module shuffle { private header "__algorithm/shuffle.h" }
304 module sift_down { private header "__algorithm/sift_down.h" }
305 module sort { private header "__algorithm/sort.h" }
306 module sort_heap { private header "__algorithm/sort_heap.h" }
307 module stable_partition { private header "__algorithm/stable_partition.h" }
308 module stable_sort { private header "__algorithm/stable_sort.h" }
309 module swap_ranges { private header "__algorithm/swap_ranges.h" }
310 module transform { private header "__algorithm/transform.h" }
311 module unique { private header "__algorithm/unique.h" }
312 module unique_copy { private header "__algorithm/unique_copy.h" }
313 module unwrap_iter { private header "__algorithm/unwrap_iter.h" }
314 module upper_bound { private header "__algorithm/upper_bound.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400315 }
Richard Smith31cfef02014-05-21 00:33:49 +0000316 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000317 module any {
318 header "any"
319 export *
320 }
Richard Smith31cfef02014-05-21 00:33:49 +0000321 module array {
322 header "array"
323 export initializer_list
324 export *
325 }
326 module atomic {
327 header "atomic"
328 export *
Richard Smith31cfef02014-05-21 00:33:49 +0000329 }
Olivier Giroux161e6e82020-02-18 09:58:34 -0500330 module barrier {
Raphael Isemann95e3ba22020-02-24 20:20:54 +0100331 requires cplusplus14
Olivier Giroux161e6e82020-02-18 09:58:34 -0500332 header "barrier"
333 export *
334 }
Marshall Clowbf32ec92018-08-17 16:07:48 +0000335 module bit {
336 header "bit"
337 export *
338 }
Richard Smith31cfef02014-05-21 00:33:49 +0000339 module bitset {
340 header "bitset"
341 export string
342 export iosfwd
343 export *
344 }
345 // No submodule for cassert. It fundamentally needs repeated, textual inclusion.
Zhihao Yuan7bf19052018-08-01 02:38:30 +0000346 module charconv {
347 header "charconv"
348 export *
349 }
Richard Smith31cfef02014-05-21 00:33:49 +0000350 module chrono {
351 header "chrono"
352 export *
353 }
Richard Smith31cfef02014-05-21 00:33:49 +0000354 module codecvt {
355 header "codecvt"
356 export *
357 }
Eric Fiseliere0074fc2018-04-06 21:37:23 +0000358 module compare {
359 header "compare"
360 export *
361 }
Richard Smith31cfef02014-05-21 00:33:49 +0000362 module complex {
363 header "complex"
364 export *
365 }
Eric Fiselierd59a0322020-04-08 18:00:13 -0400366 module concepts {
367 header "concepts"
368 export *
369 }
Richard Smith31cfef02014-05-21 00:33:49 +0000370 module condition_variable {
371 header "condition_variable"
372 export *
373 }
Richard Smith31cfef02014-05-21 00:33:49 +0000374 module deque {
375 header "deque"
376 export initializer_list
377 export *
378 }
379 module exception {
380 header "exception"
381 export *
382 }
Louis Dionne59d0b3c2019-08-05 18:29:14 +0000383 module execution {
384 header "execution"
385 export *
386 }
Eric Fiselier02cea5e2018-07-27 03:07:09 +0000387 module filesystem {
388 header "filesystem"
389 export *
390 }
Mark de Weverdf5fd832020-11-26 19:12:18 +0100391 module format {
392 header "format"
393 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000394
395 module __format {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000396 module format_error { private header "__format/format_error.h" }
397 module format_parse_context { private header "__format/format_parse_context.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000398 }
Mark de Weverdf5fd832020-11-26 19:12:18 +0100399 }
Richard Smith31cfef02014-05-21 00:33:49 +0000400 module forward_list {
401 header "forward_list"
402 export initializer_list
403 export *
404 }
405 module fstream {
406 header "fstream"
407 export *
408 }
409 module functional {
410 header "functional"
411 export *
Christopher Di Bella55d7a822021-07-01 09:25:35 -0400412
Louis Dionnea60dd872021-06-17 11:30:11 -0400413 module __functional {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000414 module binary_function { private header "__functional/binary_function.h" }
415 module binary_negate { private header "__functional/binary_negate.h" }
416 module bind { private header "__functional/bind.h" }
417 module bind_front { private header "__functional/bind_front.h" }
418 module binder1st { private header "__functional/binder1st.h" }
419 module binder2nd { private header "__functional/binder2nd.h" }
420 module default_searcher { private header "__functional/default_searcher.h" }
421 module function { private header "__functional/function.h" }
422 module hash { private header "__functional/hash.h" }
423 module identity { private header "__functional/identity.h" }
424 module is_transparent { private header "__functional/is_transparent.h" }
425 module invoke { private header "__functional/invoke.h" }
426 module mem_fn { private header "__functional/mem_fn.h" }
427 module mem_fun_ref { private header "__functional/mem_fun_ref.h" }
428 module not_fn { private header "__functional/not_fn.h" }
429 module operations { private header "__functional/operations.h" }
430 module perfect_forward { private header "__functional/perfect_forward.h" }
431 module pointer_to_binary_function { private header "__functional/pointer_to_binary_function.h" }
432 module pointer_to_unary_function { private header "__functional/pointer_to_unary_function.h" }
433 module ranges_operations { private header "__functional/ranges_operations.h" }
434 module reference_wrapper { private header "__functional/reference_wrapper.h" }
435 module unary_function { private header "__functional/unary_function.h" }
436 module unary_negate { private header "__functional/unary_negate.h" }
437 module unwrap_ref { private header "__functional/unwrap_ref.h" }
438 module weak_result_type { private header "__functional/weak_result_type.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400439 }
Richard Smith31cfef02014-05-21 00:33:49 +0000440 }
441 module future {
442 header "future"
443 export *
444 }
445 module initializer_list {
446 header "initializer_list"
447 export *
448 }
449 module iomanip {
450 header "iomanip"
451 export *
452 }
453 module ios {
454 header "ios"
455 export iosfwd
456 export *
457 }
458 module iosfwd {
459 header "iosfwd"
460 export *
461 }
462 module iostream {
463 header "iostream"
464 export ios
465 export streambuf
466 export istream
467 export ostream
468 export *
469 }
470 module istream {
471 header "istream"
472 // FIXME: should re-export ios, streambuf?
473 export *
474 }
475 module iterator {
476 header "iterator"
477 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000478
479 module __iterator {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000480 module access { private header "__iterator/access.h" }
Christopher Di Bella9fff7092021-06-29 03:53:44 +0000481 module advance {
482 private header "__iterator/advance.h"
483 export __function_like
484 }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000485 module back_insert_iterator { private header "__iterator/back_insert_iterator.h" }
zoecarver6eb71a92021-05-27 09:23:19 -0700486 module common_iterator { private header "__iterator/common_iterator.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000487 module concepts { private header "__iterator/concepts.h" }
zoecarverd3aca592021-07-13 11:06:10 -0700488 module counted_iterator { private header "__iterator/counted_iterator.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000489 module data { private header "__iterator/data.h" }
490 module default_sentinel { private header "__iterator/default_sentinel.h" }
491 module distance { private header "__iterator/distance.h" }
492 module empty { private header "__iterator/empty.h" }
493 module erase_if_container { private header "__iterator/erase_if_container.h" }
494 module front_insert_iterator { private header "__iterator/front_insert_iterator.h" }
495 module incrementable_traits { private header "__iterator/incrementable_traits.h" }
496 module insert_iterator { private header "__iterator/insert_iterator.h" }
497 module istream_iterator { private header "__iterator/istream_iterator.h" }
498 module istreambuf_iterator { private header "__iterator/istreambuf_iterator.h" }
499 module iter_move { private header "__iterator/iter_move.h" }
500 module iter_swap { private header "__iterator/iter_swap.h" }
501 module iterator { private header "__iterator/iterator.h" }
502 module iterator_traits { private header "__iterator/iterator_traits.h" }
503 module move_iterator { private header "__iterator/move_iterator.h" }
Christopher Di Bella9fff7092021-06-29 03:53:44 +0000504 module next {
505 private header "__iterator/next.h"
506 export __function_like
507 }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000508 module ostream_iterator { private header "__iterator/ostream_iterator.h" }
509 module ostreambuf_iterator { private header "__iterator/ostreambuf_iterator.h" }
Christopher Di Bella9fff7092021-06-29 03:53:44 +0000510 module prev {
511 private header "__iterator/prev.h"
512 export __function_like
513 }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000514 module projected { private header "__iterator/projected.h" }
515 module readable_traits { private header "__iterator/readable_traits.h" }
516 module reverse_access { private header "__iterator/reverse_access.h" }
517 module reverse_iterator { private header "__iterator/reverse_iterator.h" }
518 module size { private header "__iterator/size.h" }
519 module wrap_iter { private header "__iterator/wrap_iter.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000520 }
Richard Smith31cfef02014-05-21 00:33:49 +0000521 }
Olivier Giroux161e6e82020-02-18 09:58:34 -0500522 module latch {
Raphael Isemann95e3ba22020-02-24 20:20:54 +0100523 requires cplusplus14
Olivier Giroux161e6e82020-02-18 09:58:34 -0500524 header "latch"
525 export *
526 }
Richard Smith31cfef02014-05-21 00:33:49 +0000527 module limits {
528 header "limits"
529 export *
530 }
531 module list {
532 header "list"
533 export initializer_list
534 export *
535 }
536 module locale {
537 header "locale"
538 export *
539 }
540 module map {
541 header "map"
542 export initializer_list
543 export *
544 }
545 module memory {
546 header "memory"
547 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000548
549 module __memory {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000550 module addressof { private header "__memory/addressof.h" }
551 module allocation_guard { private header "__memory/allocation_guard.h" }
552 module allocator { private header "__memory/allocator.h" }
553 module allocator_arg_t { private header "__memory/allocator_arg_t.h" }
554 module allocator_traits { private header "__memory/allocator_traits.h" }
555 module auto_ptr { private header "__memory/auto_ptr.h" }
556 module compressed_pair { private header "__memory/compressed_pair.h" }
557 module construct_at { private header "__memory/construct_at.h" }
558 module pointer_safety { private header "__memory/pointer_safety.h" }
559 module pointer_traits { private header "__memory/pointer_traits.h" }
560 module raw_storage_iterator { private header "__memory/raw_storage_iterator.h" }
561 module shared_ptr { private header "__memory/shared_ptr.h" }
562 module temporary_buffer { private header "__memory/temporary_buffer.h" }
563 module uninitialized_algorithms { private header "__memory/uninitialized_algorithms.h" }
564 module unique_ptr { private header "__memory/unique_ptr.h" }
565 module uses_allocator { private header "__memory/uses_allocator.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000566 }
Richard Smith31cfef02014-05-21 00:33:49 +0000567 }
568 module mutex {
569 header "mutex"
570 export *
571 }
572 module new {
573 header "new"
574 export *
575 }
Raul Tambreafcedea2020-06-19 12:43:33 +0530576 module numbers {
577 header "numbers"
578 export *
579 }
Richard Smith31cfef02014-05-21 00:33:49 +0000580 module numeric {
581 header "numeric"
582 export *
583 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000584 module optional {
585 header "optional"
586 export *
587 }
Richard Smith31cfef02014-05-21 00:33:49 +0000588 module ostream {
589 header "ostream"
590 // FIXME: should re-export ios, streambuf?
591 export *
592 }
593 module queue {
594 header "queue"
595 export initializer_list
596 export *
597 }
598 module random {
599 header "random"
600 export initializer_list
601 export *
Louis Dionnea60dd872021-06-17 11:30:11 -0400602
603 module __random {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000604 module uniform_int_distribution { private header "__random/uniform_int_distribution.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400605 }
Richard Smith31cfef02014-05-21 00:33:49 +0000606 }
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100607 module ranges {
608 header "ranges"
Christopher Di Bella66ce1292021-04-11 05:08:32 +0000609 export compare
610 export initializer_list
611 export iterator
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100612 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000613
614 module __ranges {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000615 module access { private header "__ranges/access.h" }
616 module all { private header "__ranges/all.h" }
zoecarverbc1ca9a2021-07-09 10:09:31 -0700617 module common_view { private header "__ranges/common_view.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000618 module concepts { private header "__ranges/concepts.h" }
619 module copyable_box { private header "__ranges/copyable_box.h" }
Christopher Di Bella990b25d2021-07-08 21:01:19 +0000620 module dangling { private header "__ranges/dangling.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000621 module data { private header "__ranges/data.h" }
622 module drop_view { private header "__ranges/drop_view.h" }
623 module empty { private header "__ranges/empty.h" }
624 module empty_view { private header "__ranges/empty_view.h" }
625 module enable_borrowed_range { private header "__ranges/enable_borrowed_range.h" }
626 module enable_view { private header "__ranges/enable_view.h" }
Louis Dionneb64bcf92021-07-19 12:12:49 -0400627 module non_propagating_cache { private header "__ranges/non_propagating_cache.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000628 module ref_view { private header "__ranges/ref_view.h" }
629 module size { private header "__ranges/size.h" }
630 module subrange { private header "__ranges/subrange.h" }
zoecarver3f3337b2021-05-26 08:59:14 -0700631 module take_view { private header "__ranges/take_view.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000632 module transform_view { private header "__ranges/transform_view.h" }
633 module view_interface { private header "__ranges/view_interface.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000634 }
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100635 }
Richard Smith31cfef02014-05-21 00:33:49 +0000636 module ratio {
637 header "ratio"
638 export *
639 }
640 module regex {
641 header "regex"
642 export initializer_list
643 export *
644 }
645 module scoped_allocator {
646 header "scoped_allocator"
647 export *
648 }
Olivier Giroux161e6e82020-02-18 09:58:34 -0500649 module semaphore {
Raphael Isemann95e3ba22020-02-24 20:20:54 +0100650 requires cplusplus14
Olivier Giroux161e6e82020-02-18 09:58:34 -0500651 header "semaphore"
652 export *
653 }
Richard Smith31cfef02014-05-21 00:33:49 +0000654 module set {
655 header "set"
656 export initializer_list
657 export *
658 }
Christopher Di Bellaa75331d2021-07-15 06:41:17 +0000659 module shared_mutex {
660 header "shared_mutex"
661 export version
662 }
663 module span {
664 header "span"
665 export ranges.__ranges.enable_borrowed_range
666 export version
667 }
Richard Smith31cfef02014-05-21 00:33:49 +0000668 module sstream {
669 header "sstream"
670 // FIXME: should re-export istream, ostream, ios, streambuf, string?
671 export *
672 }
673 module stack {
674 header "stack"
675 export initializer_list
676 export *
677 }
678 module stdexcept {
679 header "stdexcept"
680 export *
681 }
682 module streambuf {
683 header "streambuf"
684 export *
685 }
686 module string {
687 header "string"
688 export initializer_list
Eric Fiselier2d357f72016-12-05 23:53:23 +0000689 export string_view
690 export __string
691 export *
692 }
693 module string_view {
694 header "string_view"
695 export initializer_list
696 export __string
Richard Smith31cfef02014-05-21 00:33:49 +0000697 export *
698 }
699 module strstream {
700 header "strstream"
Eric Fiselierbdc20862016-12-05 23:16:07 +0000701 export *
Richard Smith31cfef02014-05-21 00:33:49 +0000702 }
703 module system_error {
704 header "system_error"
705 export *
706 }
707 module thread {
708 header "thread"
709 export *
710 }
711 module tuple {
712 header "tuple"
713 export *
714 }
715 module type_traits {
716 header "type_traits"
Christopher Di Bella599a6c62021-06-09 23:10:17 +0000717 export functional.__functional.unwrap_ref
Richard Smith31cfef02014-05-21 00:33:49 +0000718 export *
719 }
720 module typeindex {
721 header "typeindex"
722 export *
723 }
724 module typeinfo {
725 header "typeinfo"
726 export *
727 }
728 module unordered_map {
729 header "unordered_map"
730 export initializer_list
731 export *
732 }
733 module unordered_set {
734 header "unordered_set"
735 export initializer_list
736 export *
737 }
738 module utility {
739 header "utility"
740 export initializer_list
741 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000742
743 module __utility {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000744 module __decay_copy { private header "__utility/__decay_copy.h" }
745 module as_const { private header "__utility/as_const.h" }
746 module cmp { private header "__utility/cmp.h" }
747 module declval { private header "__utility/declval.h" }
748 module exchange { private header "__utility/exchange.h" }
749 module forward { private header "__utility/forward.h" }
750 module in_place { private header "__utility/in_place.h" }
751 module integer_sequence { private header "__utility/integer_sequence.h" }
752 module move { private header "__utility/move.h" }
753 module pair { private header "__utility/pair.h" }
754 module piecewise_construct { private header "__utility/piecewise_construct.h" }
755 module rel_ops { private header "__utility/rel_ops.h" }
756 module swap { private header "__utility/swap.h" }
757 module to_underlying { private header "__utility/to_underlying.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000758 }
Richard Smith31cfef02014-05-21 00:33:49 +0000759 }
760 module valarray {
761 header "valarray"
762 export initializer_list
763 export *
764 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000765 module variant {
766 header "variant"
767 export *
Mark de Wever3b269752021-07-07 21:27:27 +0200768
769 module __variant {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000770 module monostate { private header "__variant/monostate.h" }
Mark de Wever3b269752021-07-07 21:27:27 +0200771 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000772 }
Richard Smith31cfef02014-05-21 00:33:49 +0000773 module vector {
774 header "vector"
775 export initializer_list
776 export *
777 }
Eric Fiseliera604a7d2018-04-04 04:21:54 +0000778 module version {
779 header "version"
780 export *
781 }
Richard Smith31cfef02014-05-21 00:33:49 +0000782
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000783 // __config not modularised due to a bug in Clang
Richard Smith31cfef02014-05-21 00:33:49 +0000784 // FIXME: These should be private.
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000785 module __availability { private header "__availability" export * }
786 module __bit_reference { private header "__bit_reference" export * }
787 module __bits { private header "__bits" export * }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000788 module __debug { header "__debug" export * }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000789 module __errc { private header "__errc" export * }
790 module __function_like { private header "__function_like.h" export * }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000791 module __hash_table { header "__hash_table" export * }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000792 module __locale { private header "__locale" export * }
793 module __mutex_base { private header "__mutex_base" export * }
794 module __node_handle { private header "__node_handle" export * }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000795 module __nullptr { header "__nullptr" export * }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000796 module __split_buffer { private header "__split_buffer" export * }
797 module __std_stream { private header "__std_stream" export * }
798 module __string { private header "__string" export * }
Petr Hosek5f4e91c2021-06-07 11:29:03 -0700799 module __threading_support { header "__threading_support" export * }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000800 module __tree { header "__tree" export * }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000801 module __tuple { private header "__tuple" export * }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000802 module __undef_macros { header "__undef_macros" export * }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000803
804 module experimental {
Eric Fiselier92ae1af2016-12-06 01:34:24 +0000805 requires cplusplus11
806
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000807 module algorithm {
808 header "experimental/algorithm"
809 export *
810 }
Eric Fiselierf0426152017-05-25 23:39:29 +0000811 module coroutine {
Eric Fiseliere4a3dab2017-05-29 23:17:28 +0000812 requires coroutines
Eric Fiselierf0426152017-05-25 23:39:29 +0000813 header "experimental/coroutine"
814 export *
815 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000816 module deque {
817 header "experimental/deque"
818 export *
819 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000820 module filesystem {
821 header "experimental/filesystem"
822 export *
823 }
824 module forward_list {
825 header "experimental/forward_list"
826 export *
827 }
828 module functional {
829 header "experimental/functional"
830 export *
831 }
832 module iterator {
833 header "experimental/iterator"
834 export *
835 }
836 module list {
837 header "experimental/list"
838 export *
839 }
840 module map {
841 header "experimental/map"
842 export *
843 }
844 module memory_resource {
845 header "experimental/memory_resource"
846 export *
847 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000848 module propagate_const {
849 header "experimental/propagate_const"
850 export *
851 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000852 module regex {
853 header "experimental/regex"
854 export *
855 }
Tim Shen158e51b2018-04-23 21:54:06 +0000856 module simd {
857 header "experimental/simd"
858 export *
859 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000860 module set {
861 header "experimental/set"
862 export *
863 }
Marshall Clowd2ad87e2018-07-24 03:01:02 +0000864 module span {
865 header "span"
866 export *
867 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000868 module string {
869 header "experimental/string"
870 export *
871 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000872 module type_traits {
873 header "experimental/type_traits"
874 export *
875 }
876 module unordered_map {
877 header "experimental/unordered_map"
878 export *
879 }
880 module unordered_set {
881 header "experimental/unordered_set"
882 export *
883 }
884 module utility {
885 header "experimental/utility"
886 export *
887 }
888 module vector {
889 header "experimental/vector"
890 export *
891 }
892 // FIXME these should be private
893 module __memory {
894 header "experimental/__memory"
895 export *
896 }
897 } // end experimental
Richard Smith31cfef02014-05-21 00:33:49 +0000898}