blob: 17755277f65f00009ccba2e829e35327b7710eef [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 *
Louis Dionne1462d4d2020-05-28 14:28:38 -0400338
339 module __bit {
340 module bit_cast { private header "__bit/bit_cast.h" }
Nikolas Klauserb52cfd92021-11-22 00:22:55 +0100341 module byteswap { private header "__bit/byteswap.h" }
Louis Dionne1462d4d2020-05-28 14:28:38 -0400342 }
Marshall Clowbf32ec92018-08-17 16:07:48 +0000343 }
Richard Smith31cfef02014-05-21 00:33:49 +0000344 module bitset {
345 header "bitset"
346 export string
347 export iosfwd
348 export *
349 }
350 // No submodule for cassert. It fundamentally needs repeated, textual inclusion.
Zhihao Yuan7bf19052018-08-01 02:38:30 +0000351 module charconv {
352 header "charconv"
353 export *
Mark de Weverfd2375f2021-08-30 19:47:55 +0200354
355 module __charconv {
356 module chars_format { private header "__charconv/chars_format.h" }
357 module from_chars_result { private header "__charconv/from_chars_result.h" }
358 module to_chars_result { private header "__charconv/to_chars_result.h" }
359 }
360
Zhihao Yuan7bf19052018-08-01 02:38:30 +0000361 }
Richard Smith31cfef02014-05-21 00:33:49 +0000362 module chrono {
363 header "chrono"
364 export *
365 }
Richard Smith31cfef02014-05-21 00:33:49 +0000366 module codecvt {
367 header "codecvt"
368 export *
369 }
Eric Fiseliere0074fc2018-04-06 21:37:23 +0000370 module compare {
371 header "compare"
372 export *
Ruslan Arutyunyan1babff32021-07-28 22:05:46 -0400373
374 module __compare {
375 module common_comparison_category { private header "__compare/common_comparison_category.h" }
Arthur O'Dwyerfbf9aab2021-07-28 23:40:29 -0400376 module compare_three_way { private header "__compare/compare_three_way.h" }
Arthur O'Dwyer77eb34e2021-07-29 00:03:01 -0400377 module compare_three_way_result { private header "__compare/compare_three_way_result.h" }
Arthur O'Dwyer5eeeb7b2021-09-27 00:48:39 -0400378 module is_eq { private header "__compare/is_eq.h" }
Ruslan Arutyunyan1babff32021-07-28 22:05:46 -0400379 module ordering { private header "__compare/ordering.h" }
Kent Ross47cc52e2021-09-22 22:36:23 -0700380 module synth_three_way { private header "__compare/synth_three_way.h" }
Ruslan Arutyunyanebd52ba2021-09-04 20:16:18 -0700381 module three_way_comparable { private header "__compare/three_way_comparable.h" }
Ruslan Arutyunyan1babff32021-07-28 22:05:46 -0400382 }
Eric Fiseliere0074fc2018-04-06 21:37:23 +0000383 }
Richard Smith31cfef02014-05-21 00:33:49 +0000384 module complex {
385 header "complex"
386 export *
387 }
Eric Fiselierd59a0322020-04-08 18:00:13 -0400388 module concepts {
389 header "concepts"
390 export *
Arthur O'Dwyerf72c4772021-07-29 01:08:30 -0400391
392 module __concepts {
393 module arithmetic { private header "__concepts/arithmetic.h" }
394 module assignable { private header "__concepts/assignable.h" }
395 module boolean_testable { private header "__concepts/boolean_testable.h" }
396 module class_or_enum { private header "__concepts/class_or_enum.h" }
397 module common_reference_with { private header "__concepts/common_reference_with.h" }
398 module common_with { private header "__concepts/common_with.h" }
399 module constructible { private header "__concepts/constructible.h" }
400 module convertible_to { private header "__concepts/convertible_to.h" }
401 module copyable { private header "__concepts/copyable.h" }
402 module derived_from { private header "__concepts/derived_from.h" }
403 module destructible { private header "__concepts/destructible.h" }
404 module different_from { private header "__concepts/different_from.h" }
405 module equality_comparable { private header "__concepts/equality_comparable.h" }
406 module invocable { private header "__concepts/invocable.h" }
407 module movable { private header "__concepts/movable.h" }
408 module predicate { private header "__concepts/predicate.h" }
409 module regular { private header "__concepts/regular.h" }
410 module relation { private header "__concepts/relation.h" }
411 module same_as { private header "__concepts/same_as.h" }
412 module semiregular { private header "__concepts/semiregular.h" }
413 module swappable { private header "__concepts/swappable.h" }
414 module totally_ordered { private header "__concepts/totally_ordered.h" }
415 }
Eric Fiselierd59a0322020-04-08 18:00:13 -0400416 }
Richard Smith31cfef02014-05-21 00:33:49 +0000417 module condition_variable {
418 header "condition_variable"
419 export *
420 }
Chuanqi Xu6fdf6192021-11-16 14:05:34 +0800421 module coroutine {
422 requires coroutines
423 header "coroutine"
424 export compare
425 export *
426
427 module __coroutine {
428 module coroutine_handle { private header "__coroutine/coroutine_handle.h" }
429 module coroutine_traits { private header "__coroutine/coroutine_traits.h" }
430 module trivial_awaitables { private header "__coroutine/trivial_awaitables.h" }
431 module noop_coroutine_handle { private header "__coroutine/noop_coroutine_handle.h" }
432 }
433 }
Richard Smith31cfef02014-05-21 00:33:49 +0000434 module deque {
435 header "deque"
436 export initializer_list
437 export *
438 }
439 module exception {
440 header "exception"
441 export *
442 }
Louis Dionne59d0b3c2019-08-05 18:29:14 +0000443 module execution {
444 header "execution"
445 export *
446 }
Eric Fiselier02cea5e2018-07-27 03:07:09 +0000447 module filesystem {
448 header "filesystem"
449 export *
450 }
Mark de Weverdf5fd832020-11-26 19:12:18 +0100451 module format {
452 header "format"
453 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000454
455 module __format {
Mark de Wever96ff50c2020-12-14 17:39:15 +0100456 module format_arg { private header "__format/format_arg.h" }
457 module format_args { private header "__format/format_args.h" }
Mark de Wevercba61372020-12-05 11:45:21 +0100458 module format_context {
459 private header "__format/format_context.h"
460 export optional
461 export locale
462 }
Mark de Wever96ff50c2020-12-14 17:39:15 +0100463 module format_error { private header "__format/format_error.h" }
464 module format_fwd { private header "__format/format_fwd.h" }
465 module format_parse_context { private header "__format/format_parse_context.h" }
466 module format_string { private header "__format/format_string.h" }
Mark de Wever63229c42021-11-13 19:43:32 +0100467 module format_to_n_result { private header "__format/format_to_n_result.h" }
Mark de Wever96ff50c2020-12-14 17:39:15 +0100468 module formatter { private header "__format/formatter.h" }
Mark de Wever68a67712020-12-14 17:39:15 +0100469 module formatter_bool { private header "__format/formatter_bool.h" }
Mark de Weverb9d8e2f2020-12-14 17:39:15 +0100470 module formatter_char { private header "__format/formatter_char.h" }
Mark de Wever29307fd2020-12-14 17:39:15 +0100471 module formatter_integer { private header "__format/formatter_integer.h" }
472 module formatter_integral { private header "__format/formatter_integral.h" }
Mark de Weverf82551e2020-12-14 17:39:15 +0100473 module formatter_string { private header "__format/formatter_string.h" }
Mark de Wever96ff50c2020-12-14 17:39:15 +0100474 module parser_std_format_spec { private header "__format/parser_std_format_spec.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000475 }
Mark de Weverdf5fd832020-11-26 19:12:18 +0100476 }
Richard Smith31cfef02014-05-21 00:33:49 +0000477 module forward_list {
478 header "forward_list"
479 export initializer_list
480 export *
481 }
482 module fstream {
483 header "fstream"
484 export *
485 }
486 module functional {
487 header "functional"
488 export *
Christopher Di Bella55d7a822021-07-01 09:25:35 -0400489
Louis Dionnea60dd872021-06-17 11:30:11 -0400490 module __functional {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000491 module binary_function { private header "__functional/binary_function.h" }
492 module binary_negate { private header "__functional/binary_negate.h" }
493 module bind { private header "__functional/bind.h" }
Louis Dionne067e22b2021-08-09 15:41:26 -0400494 module bind_back { private header "__functional/bind_back.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000495 module bind_front { private header "__functional/bind_front.h" }
496 module binder1st { private header "__functional/binder1st.h" }
497 module binder2nd { private header "__functional/binder2nd.h" }
Louis Dionne067e22b2021-08-09 15:41:26 -0400498 module compose { private header "__functional/compose.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000499 module default_searcher { private header "__functional/default_searcher.h" }
500 module function { private header "__functional/function.h" }
501 module hash { private header "__functional/hash.h" }
502 module identity { private header "__functional/identity.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000503 module invoke { private header "__functional/invoke.h" }
Louis Dionne067e22b2021-08-09 15:41:26 -0400504 module is_transparent { private header "__functional/is_transparent.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000505 module mem_fn { private header "__functional/mem_fn.h" }
506 module mem_fun_ref { private header "__functional/mem_fun_ref.h" }
507 module not_fn { private header "__functional/not_fn.h" }
508 module operations { private header "__functional/operations.h" }
509 module perfect_forward { private header "__functional/perfect_forward.h" }
510 module pointer_to_binary_function { private header "__functional/pointer_to_binary_function.h" }
511 module pointer_to_unary_function { private header "__functional/pointer_to_unary_function.h" }
512 module ranges_operations { private header "__functional/ranges_operations.h" }
513 module reference_wrapper { private header "__functional/reference_wrapper.h" }
514 module unary_function { private header "__functional/unary_function.h" }
515 module unary_negate { private header "__functional/unary_negate.h" }
516 module unwrap_ref { private header "__functional/unwrap_ref.h" }
517 module weak_result_type { private header "__functional/weak_result_type.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400518 }
Richard Smith31cfef02014-05-21 00:33:49 +0000519 }
520 module future {
521 header "future"
522 export *
523 }
524 module initializer_list {
525 header "initializer_list"
526 export *
527 }
528 module iomanip {
529 header "iomanip"
530 export *
531 }
532 module ios {
533 header "ios"
534 export iosfwd
535 export *
536 }
537 module iosfwd {
538 header "iosfwd"
539 export *
540 }
541 module iostream {
542 header "iostream"
543 export ios
544 export streambuf
545 export istream
546 export ostream
547 export *
548 }
549 module istream {
550 header "istream"
551 // FIXME: should re-export ios, streambuf?
552 export *
553 }
554 module iterator {
555 header "iterator"
556 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000557
558 module __iterator {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000559 module access { private header "__iterator/access.h" }
Christopher Di Bella9fff7092021-06-29 03:53:44 +0000560 module advance {
561 private header "__iterator/advance.h"
562 export __function_like
563 }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000564 module back_insert_iterator { private header "__iterator/back_insert_iterator.h" }
zoecarver6eb71a92021-05-27 09:23:19 -0700565 module common_iterator { private header "__iterator/common_iterator.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000566 module concepts { private header "__iterator/concepts.h" }
zoecarverd3aca592021-07-13 11:06:10 -0700567 module counted_iterator { private header "__iterator/counted_iterator.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000568 module data { private header "__iterator/data.h" }
569 module default_sentinel { private header "__iterator/default_sentinel.h" }
570 module distance { private header "__iterator/distance.h" }
571 module empty { private header "__iterator/empty.h" }
572 module erase_if_container { private header "__iterator/erase_if_container.h" }
573 module front_insert_iterator { private header "__iterator/front_insert_iterator.h" }
574 module incrementable_traits { private header "__iterator/incrementable_traits.h" }
575 module insert_iterator { private header "__iterator/insert_iterator.h" }
576 module istream_iterator { private header "__iterator/istream_iterator.h" }
577 module istreambuf_iterator { private header "__iterator/istreambuf_iterator.h" }
578 module iter_move { private header "__iterator/iter_move.h" }
579 module iter_swap { private header "__iterator/iter_swap.h" }
580 module iterator { private header "__iterator/iterator.h" }
581 module iterator_traits { private header "__iterator/iterator_traits.h" }
582 module move_iterator { private header "__iterator/move_iterator.h" }
Christopher Di Bella9fff7092021-06-29 03:53:44 +0000583 module next {
584 private header "__iterator/next.h"
585 export __function_like
586 }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000587 module ostream_iterator { private header "__iterator/ostream_iterator.h" }
588 module ostreambuf_iterator { private header "__iterator/ostreambuf_iterator.h" }
Christopher Di Bella9fff7092021-06-29 03:53:44 +0000589 module prev {
590 private header "__iterator/prev.h"
591 export __function_like
592 }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000593 module projected { private header "__iterator/projected.h" }
594 module readable_traits { private header "__iterator/readable_traits.h" }
595 module reverse_access { private header "__iterator/reverse_access.h" }
596 module reverse_iterator { private header "__iterator/reverse_iterator.h" }
597 module size { private header "__iterator/size.h" }
zoecarver23001f72021-08-11 11:16:27 -0700598 module unreachable_sentinel { private header "__iterator/unreachable_sentinel.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000599 module wrap_iter { private header "__iterator/wrap_iter.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000600 }
Richard Smith31cfef02014-05-21 00:33:49 +0000601 }
Olivier Giroux161e6e82020-02-18 09:58:34 -0500602 module latch {
Raphael Isemann95e3ba22020-02-24 20:20:54 +0100603 requires cplusplus14
Olivier Giroux161e6e82020-02-18 09:58:34 -0500604 header "latch"
605 export *
606 }
Richard Smith31cfef02014-05-21 00:33:49 +0000607 module limits {
608 header "limits"
609 export *
610 }
611 module list {
612 header "list"
613 export initializer_list
614 export *
615 }
616 module locale {
617 header "locale"
618 export *
619 }
620 module map {
621 header "map"
622 export initializer_list
623 export *
624 }
625 module memory {
626 header "memory"
627 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000628
629 module __memory {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000630 module addressof { private header "__memory/addressof.h" }
631 module allocation_guard { private header "__memory/allocation_guard.h" }
632 module allocator { private header "__memory/allocator.h" }
633 module allocator_arg_t { private header "__memory/allocator_arg_t.h" }
634 module allocator_traits { private header "__memory/allocator_traits.h" }
635 module auto_ptr { private header "__memory/auto_ptr.h" }
636 module compressed_pair { private header "__memory/compressed_pair.h" }
637 module construct_at { private header "__memory/construct_at.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000638 module pointer_traits { private header "__memory/pointer_traits.h" }
639 module raw_storage_iterator { private header "__memory/raw_storage_iterator.h" }
640 module shared_ptr { private header "__memory/shared_ptr.h" }
641 module temporary_buffer { private header "__memory/temporary_buffer.h" }
642 module uninitialized_algorithms { private header "__memory/uninitialized_algorithms.h" }
643 module unique_ptr { private header "__memory/unique_ptr.h" }
644 module uses_allocator { private header "__memory/uses_allocator.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000645 }
Richard Smith31cfef02014-05-21 00:33:49 +0000646 }
647 module mutex {
648 header "mutex"
649 export *
650 }
651 module new {
652 header "new"
653 export *
654 }
Raul Tambreafcedea2020-06-19 12:43:33 +0530655 module numbers {
656 header "numbers"
657 export *
658 }
Richard Smith31cfef02014-05-21 00:33:49 +0000659 module numeric {
660 header "numeric"
661 export *
662 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000663 module optional {
664 header "optional"
665 export *
666 }
Richard Smith31cfef02014-05-21 00:33:49 +0000667 module ostream {
668 header "ostream"
669 // FIXME: should re-export ios, streambuf?
670 export *
671 }
672 module queue {
673 header "queue"
674 export initializer_list
675 export *
676 }
677 module random {
678 header "random"
679 export initializer_list
680 export *
Louis Dionnea60dd872021-06-17 11:30:11 -0400681
682 module __random {
Arthur O'Dwyerc3a73732021-11-19 14:58:51 -0500683 module bernoulli_distribution { private header "__random/bernoulli_distribution.h" }
684 module binomial_distribution { private header "__random/binomial_distribution.h" }
685 module cauchy_distribution { private header "__random/cauchy_distribution.h" }
686 module chi_squared_distribution { private header "__random/chi_squared_distribution.h" }
687 module default_random_engine { private header "__random/default_random_engine.h" }
688 module discard_block_engine { private header "__random/discard_block_engine.h" }
689 module discrete_distribution { private header "__random/discrete_distribution.h" }
690 module exponential_distribution { private header "__random/exponential_distribution.h" }
691 module extreme_value_distribution { private header "__random/extreme_value_distribution.h" }
692 module fisher_f_distribution { private header "__random/fisher_f_distribution.h" }
693 module gamma_distribution { private header "__random/gamma_distribution.h" }
694 module generate_canonical { private header "__random/generate_canonical.h" }
695 module geometric_distribution { private header "__random/geometric_distribution.h" }
696 module independent_bits_engine { private header "__random/independent_bits_engine.h" }
697 module is_seed_sequence { private header "__random/is_seed_sequence.h" }
698 module knuth_b { private header "__random/knuth_b.h" }
699 module linear_congruential_engine { private header "__random/linear_congruential_engine.h" }
700 module log2 { private header "__random/log2.h" }
701 module lognormal_distribution { private header "__random/lognormal_distribution.h" }
702 module mersenne_twister_engine { private header "__random/mersenne_twister_engine.h" }
703 module negative_binomial_distribution { private header "__random/negative_binomial_distribution.h" }
704 module normal_distribution { private header "__random/normal_distribution.h" }
705 module piecewise_constant_distribution { private header "__random/piecewise_constant_distribution.h" }
706 module piecewise_linear_distribution { private header "__random/piecewise_linear_distribution.h" }
707 module poisson_distribution { private header "__random/poisson_distribution.h" }
708 module random_device { private header "__random/random_device.h" }
709 module ranlux { private header "__random/ranlux.h" }
710 module seed_seq { private header "__random/seed_seq.h" }
711 module shuffle_order_engine { private header "__random/shuffle_order_engine.h" }
712 module student_t_distribution { private header "__random/student_t_distribution.h" }
713 module subtract_with_carry_engine { private header "__random/subtract_with_carry_engine.h" }
714 module uniform_int_distribution { private header "__random/uniform_int_distribution.h" }
715 module uniform_random_bit_generator { private header "__random/uniform_random_bit_generator.h" }
716 module uniform_real_distribution { private header "__random/uniform_real_distribution.h" }
717 module weibull_distribution { private header "__random/weibull_distribution.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400718 }
Richard Smith31cfef02014-05-21 00:33:49 +0000719 }
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100720 module ranges {
721 header "ranges"
Christopher Di Bella66ce1292021-04-11 05:08:32 +0000722 export compare
723 export initializer_list
724 export iterator
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100725 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000726
727 module __ranges {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000728 module access { private header "__ranges/access.h" }
Louis Dionne8c2023c2021-08-11 17:36:35 -0400729 module all {
730 private header "__ranges/all.h"
731 export functional.__functional.compose
732 export functional.__functional.perfect_forward
733 }
zoecarverbc1ca9a2021-07-09 10:09:31 -0700734 module common_view { private header "__ranges/common_view.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000735 module concepts { private header "__ranges/concepts.h" }
736 module copyable_box { private header "__ranges/copyable_box.h" }
zoecarver6cfa81e2021-07-27 15:44:33 -0700737 module counted { private header "__ranges/counted.h" }
Christopher Di Bella990b25d2021-07-08 21:01:19 +0000738 module dangling { private header "__ranges/dangling.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000739 module data { private header "__ranges/data.h" }
740 module drop_view { private header "__ranges/drop_view.h" }
741 module empty { private header "__ranges/empty.h" }
742 module empty_view { private header "__ranges/empty_view.h" }
743 module enable_borrowed_range { private header "__ranges/enable_borrowed_range.h" }
744 module enable_view { private header "__ranges/enable_view.h" }
zoecarvera7efd962021-08-03 13:05:20 -0700745 module iota_view { private header "__ranges/iota_view.h" }
zoecarver58b4f982021-08-06 15:33:46 -0700746 module join_view { private header "__ranges/join_view.h" }
Louis Dionneb64bcf92021-07-19 12:12:49 -0400747 module non_propagating_cache { private header "__ranges/non_propagating_cache.h" }
Louis Dionne8c2023c2021-08-11 17:36:35 -0400748 module range_adaptor { private header "__ranges/range_adaptor.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000749 module ref_view { private header "__ranges/ref_view.h" }
zoecarverca1bcd72021-07-28 17:11:04 -0700750 module reverse_view { private header "__ranges/reverse_view.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000751 module size { private header "__ranges/size.h" }
zoecarver9c7276c2021-07-26 17:27:40 -0700752 module single_view { private header "__ranges/single_view.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000753 module subrange { private header "__ranges/subrange.h" }
zoecarver3f3337b2021-05-26 08:59:14 -0700754 module take_view { private header "__ranges/take_view.h" }
Louis Dionne8c2023c2021-08-11 17:36:35 -0400755 module transform_view {
756 private header "__ranges/transform_view.h"
757 export functional.__functional.bind_back
758 export functional.__functional.perfect_forward
759 }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000760 module view_interface { private header "__ranges/view_interface.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000761 }
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100762 }
Richard Smith31cfef02014-05-21 00:33:49 +0000763 module ratio {
764 header "ratio"
765 export *
766 }
767 module regex {
768 header "regex"
769 export initializer_list
770 export *
771 }
772 module scoped_allocator {
773 header "scoped_allocator"
774 export *
775 }
Olivier Giroux161e6e82020-02-18 09:58:34 -0500776 module semaphore {
Raphael Isemann95e3ba22020-02-24 20:20:54 +0100777 requires cplusplus14
Olivier Giroux161e6e82020-02-18 09:58:34 -0500778 header "semaphore"
779 export *
780 }
Richard Smith31cfef02014-05-21 00:33:49 +0000781 module set {
782 header "set"
783 export initializer_list
784 export *
785 }
Christopher Di Bellaa75331d2021-07-15 06:41:17 +0000786 module shared_mutex {
787 header "shared_mutex"
788 export version
789 }
790 module span {
791 header "span"
792 export ranges.__ranges.enable_borrowed_range
793 export version
794 }
Richard Smith31cfef02014-05-21 00:33:49 +0000795 module sstream {
796 header "sstream"
797 // FIXME: should re-export istream, ostream, ios, streambuf, string?
798 export *
799 }
800 module stack {
801 header "stack"
802 export initializer_list
803 export *
804 }
805 module stdexcept {
806 header "stdexcept"
807 export *
808 }
809 module streambuf {
810 header "streambuf"
811 export *
812 }
813 module string {
814 header "string"
815 export initializer_list
Eric Fiselier2d357f72016-12-05 23:53:23 +0000816 export string_view
817 export __string
818 export *
819 }
820 module string_view {
821 header "string_view"
822 export initializer_list
823 export __string
Richard Smith31cfef02014-05-21 00:33:49 +0000824 export *
825 }
826 module strstream {
827 header "strstream"
Eric Fiselierbdc20862016-12-05 23:16:07 +0000828 export *
Richard Smith31cfef02014-05-21 00:33:49 +0000829 }
830 module system_error {
831 header "system_error"
832 export *
833 }
834 module thread {
835 header "thread"
836 export *
Louis Dionneaf2d2a82021-11-17 10:59:31 -0500837
838 module __thread {
839 module poll_with_backoff { private header "__thread/poll_with_backoff.h" }
840 }
Richard Smith31cfef02014-05-21 00:33:49 +0000841 }
842 module tuple {
843 header "tuple"
844 export *
845 }
846 module type_traits {
847 header "type_traits"
Christopher Di Bella599a6c62021-06-09 23:10:17 +0000848 export functional.__functional.unwrap_ref
Richard Smith31cfef02014-05-21 00:33:49 +0000849 export *
850 }
851 module typeindex {
852 header "typeindex"
853 export *
854 }
855 module typeinfo {
856 header "typeinfo"
857 export *
858 }
859 module unordered_map {
860 header "unordered_map"
861 export initializer_list
862 export *
863 }
864 module unordered_set {
865 header "unordered_set"
866 export initializer_list
867 export *
868 }
869 module utility {
870 header "utility"
871 export initializer_list
872 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000873
874 module __utility {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000875 module as_const { private header "__utility/as_const.h" }
876 module cmp { private header "__utility/cmp.h" }
Louis Dionne64f0cbf2021-08-27 10:36:04 -0400877 module decay_copy { private header "__utility/decay_copy.h" }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000878 module declval { private header "__utility/declval.h" }
879 module exchange { private header "__utility/exchange.h" }
880 module forward { private header "__utility/forward.h" }
881 module in_place { private header "__utility/in_place.h" }
882 module integer_sequence { private header "__utility/integer_sequence.h" }
883 module move { private header "__utility/move.h" }
884 module pair { private header "__utility/pair.h" }
885 module piecewise_construct { private header "__utility/piecewise_construct.h" }
886 module rel_ops { private header "__utility/rel_ops.h" }
887 module swap { private header "__utility/swap.h" }
888 module to_underlying { private header "__utility/to_underlying.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000889 }
Richard Smith31cfef02014-05-21 00:33:49 +0000890 }
891 module valarray {
892 header "valarray"
893 export initializer_list
894 export *
895 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000896 module variant {
897 header "variant"
898 export *
Mark de Wever3b269752021-07-07 21:27:27 +0200899
900 module __variant {
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000901 module monostate { private header "__variant/monostate.h" }
Mark de Wever3b269752021-07-07 21:27:27 +0200902 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000903 }
Richard Smith31cfef02014-05-21 00:33:49 +0000904 module vector {
905 header "vector"
906 export initializer_list
907 export *
908 }
Eric Fiseliera604a7d2018-04-04 04:21:54 +0000909 module version {
910 header "version"
911 export *
912 }
Richard Smith31cfef02014-05-21 00:33:49 +0000913
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000914 // __config not modularised due to a bug in Clang
Richard Smith31cfef02014-05-21 00:33:49 +0000915 // FIXME: These should be private.
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000916 module __availability { private header "__availability" export * }
917 module __bit_reference { private header "__bit_reference" export * }
918 module __bits { private header "__bits" export * }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000919 module __debug { header "__debug" export * }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000920 module __errc { private header "__errc" export * }
921 module __function_like { private header "__function_like.h" export * }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000922 module __hash_table { header "__hash_table" export * }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000923 module __locale { private header "__locale" export * }
Louis Dionne89258142021-08-23 15:32:36 -0400924 module __mbstate { private header "__mbstate_t.h" export * }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000925 module __mutex_base { private header "__mutex_base" export * }
926 module __node_handle { private header "__node_handle" export * }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000927 module __nullptr { header "__nullptr" export * }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000928 module __split_buffer { private header "__split_buffer" export * }
929 module __std_stream { private header "__std_stream" export * }
930 module __string { private header "__string" export * }
Petr Hosek5f4e91c2021-06-07 11:29:03 -0700931 module __threading_support { header "__threading_support" export * }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000932 module __tree { header "__tree" export * }
Christopher Di Bella60fc6602021-07-13 19:44:07 +0000933 module __tuple { private header "__tuple" export * }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000934 module __undef_macros { header "__undef_macros" export * }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000935
936 module experimental {
Eric Fiselier92ae1af2016-12-06 01:34:24 +0000937 requires cplusplus11
938
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000939 module algorithm {
940 header "experimental/algorithm"
941 export *
942 }
Eric Fiselierf0426152017-05-25 23:39:29 +0000943 module coroutine {
Eric Fiseliere4a3dab2017-05-29 23:17:28 +0000944 requires coroutines
Eric Fiselierf0426152017-05-25 23:39:29 +0000945 header "experimental/coroutine"
946 export *
947 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000948 module deque {
949 header "experimental/deque"
950 export *
951 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000952 module filesystem {
953 header "experimental/filesystem"
954 export *
955 }
956 module forward_list {
957 header "experimental/forward_list"
958 export *
959 }
960 module functional {
961 header "experimental/functional"
962 export *
963 }
964 module iterator {
965 header "experimental/iterator"
966 export *
967 }
968 module list {
969 header "experimental/list"
970 export *
971 }
972 module map {
973 header "experimental/map"
974 export *
975 }
976 module memory_resource {
977 header "experimental/memory_resource"
978 export *
979 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000980 module propagate_const {
981 header "experimental/propagate_const"
982 export *
983 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000984 module regex {
985 header "experimental/regex"
986 export *
987 }
Tim Shen158e51b2018-04-23 21:54:06 +0000988 module simd {
989 header "experimental/simd"
990 export *
991 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000992 module set {
993 header "experimental/set"
994 export *
995 }
Marshall Clowd2ad87e2018-07-24 03:01:02 +0000996 module span {
997 header "span"
998 export *
999 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +00001000 module string {
1001 header "experimental/string"
1002 export *
1003 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +00001004 module type_traits {
1005 header "experimental/type_traits"
1006 export *
1007 }
1008 module unordered_map {
1009 header "experimental/unordered_map"
1010 export *
1011 }
1012 module unordered_set {
1013 header "experimental/unordered_set"
1014 export *
1015 }
1016 module utility {
1017 header "experimental/utility"
1018 export *
1019 }
1020 module vector {
1021 header "experimental/vector"
1022 export *
1023 }
1024 // FIXME these should be private
1025 module __memory {
1026 header "experimental/__memory"
1027 export *
1028 }
1029 } // end experimental
Richard Smith31cfef02014-05-21 00:33:49 +00001030}