|
11 | 11 | #define _LIBCPP_GENERATOR |
12 | 12 |
|
13 | 13 | #include <__assert> |
| 14 | +#include <__concepts/common_reference_with.h> |
14 | 15 | #include <__concepts/constructible.h> |
15 | 16 | #include <__concepts/convertible_to.h> |
| 17 | +#include <__concepts/same_as.h> |
16 | 18 | #include <__config> |
17 | 19 | #include <__coroutine/coroutine_handle.h> |
18 | 20 | #include <__coroutine/coroutine_traits.h> |
|
23 | 25 | #include <__memory/addressof.h> |
24 | 26 | #include <__memory/allocator_arg_t.h> |
25 | 27 | #include <__memory/allocator_traits.h> |
| 28 | +#include <__ranges/access.h> |
26 | 29 | #include <__ranges/concepts.h> |
27 | 30 | #include <__ranges/elements_of.h> |
28 | 31 | #include <__ranges/view_interface.h> |
|
34 | 37 | #include <__type_traits/is_reference.h> |
35 | 38 | #include <__type_traits/is_void.h> |
36 | 39 | #include <__type_traits/remove_cvref.h> |
| 40 | +#include <__type_traits/remove_reference.h> |
37 | 41 | #include <__utility/exchange.h> |
| 42 | +#include <__utility/move.h> |
38 | 43 | #include <__utility/swap.h> |
39 | 44 |
|
| 45 | +#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| 46 | +# pragma GCC system_header |
| 47 | +#endif |
| 48 | + |
| 49 | +_LIBCPP_PUSH_MACROS |
| 50 | +#include <__undef_macros> |
| 51 | + |
40 | 52 | #if _LIBCPP_STD_VER >= 23 |
41 | 53 |
|
42 | 54 | _LIBCPP_BEGIN_NAMESPACE_STD |
@@ -86,7 +98,7 @@ private: |
86 | 98 | __root_data __root; |
87 | 99 | __recursive_data __recursive; |
88 | 100 |
|
89 | | - ~__union() noexcept {} |
| 101 | + _LIBCPP_HIDE_FROM_ABI ~__union() noexcept {} |
90 | 102 | } __data_; |
91 | 103 |
|
92 | 104 | // The `__tag_` stores the active member of the `__data_` union: |
@@ -370,10 +382,8 @@ private: |
370 | 382 |
|
371 | 383 | _LIBCPP_END_NAMESPACE_STD |
372 | 384 |
|
373 | | -#endif |
| 385 | +#endif // _LIBCPP_STD_VER >= 23 |
374 | 386 |
|
375 | | -#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
376 | | -# pragma GCC system_header |
377 | | -#endif |
| 387 | +_LIBCPP_POP_MACROS |
378 | 388 |
|
379 | | -#endif |
| 389 | +#endif // _LIBCPP_GENERATOR |
0 commit comments