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