libstdc++
version.h
Go to the documentation of this file.
1// Copyright (C) 2023-2026 Free Software Foundation, Inc.
2
3// This file is part of the GNU ISO C++ Library. This library is free
4// software; you can redistribute it and/or modify it under the
5// terms of the GNU General Public License as published by the
6// Free Software Foundation; either version 3, or (at your option)
7// any later version.
8
9// This library is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13
14// Under Section 7 of GPL version 3, you are granted additional
15// permissions described in the GCC Runtime Library Exception, version
16// 3.1, as published by the Free Software Foundation.
17
18// You should have received a copy of the GNU General Public License and
19// a copy of the GCC Runtime Library Exception along with this program;
20// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
21// <http://www.gnu.org/licenses/>.
22
23// DO NOT EDIT THIS FILE (version.h)
24//
25// It has been AutoGen-ed
26// From the definitions version.def
27// and the template file version.tpl
28
29/** @file bits/version.h
30 * This is an internal header file, included by other library headers.
31 * Do not attempt to use it directly. @headername{version}
32 */
33
34// Usage guide:
35//
36// In your usual header, do something like:
37//
38// #define __glibcxx_want_ranges
39// #define __glibcxx_want_concepts
40// #include <bits/version.h>
41//
42// This will generate the FTMs you named, and let you use them in your code as
43// if it was user code. All macros are also exposed under __glibcxx_NAME even
44// if unwanted, to permit bits and other FTMs to depend on them for conditional
45// computation without exposing extra FTMs to user code.
46
47#ifdef _GLIBCXX_SYSHDR
48#pragma GCC system_header
49#endif
50
51#include <bits/c++config.h>
52
53#if !defined(__cpp_lib_incomplete_container_elements)
54# if _GLIBCXX_HOSTED
55# define __glibcxx_incomplete_container_elements 201505L
56# if defined(__glibcxx_want_all) || defined(__glibcxx_want_incomplete_container_elements)
57# define __cpp_lib_incomplete_container_elements 201505L
58# endif
59# endif
60#endif /* !defined(__cpp_lib_incomplete_container_elements) */
61#undef __glibcxx_want_incomplete_container_elements
62
63#if !defined(__cpp_lib_uncaught_exceptions)
64# if ((defined(__STRICT_ANSI__) && __cplusplus >= 201703L) || (!defined(__STRICT_ANSI__) && __cplusplus >= 199711L))
65# define __glibcxx_uncaught_exceptions 201411L
66# if defined(__glibcxx_want_all) || defined(__glibcxx_want_uncaught_exceptions)
67# define __cpp_lib_uncaught_exceptions 201411L
68# endif
69# endif
70#endif /* !defined(__cpp_lib_uncaught_exceptions) */
71#undef __glibcxx_want_uncaught_exceptions
72
73#if !defined(__cpp_lib_allocator_traits_is_always_equal)
74# if (__cplusplus >= 201103L)
75# define __glibcxx_allocator_traits_is_always_equal 201411L
76# if defined(__glibcxx_want_all) || defined(__glibcxx_want_allocator_traits_is_always_equal)
77# define __cpp_lib_allocator_traits_is_always_equal 201411L
78# endif
79# endif
80#endif /* !defined(__cpp_lib_allocator_traits_is_always_equal) */
81#undef __glibcxx_want_allocator_traits_is_always_equal
82
83#if !defined(__cpp_lib_allocate_at_least)
84# if (__cplusplus > 202002L)
85# define __glibcxx_allocate_at_least 202302L
86# if defined(__glibcxx_want_all) || defined(__glibcxx_want_allocate_at_least)
87# define __cpp_lib_allocate_at_least 202302L
88# endif
89# endif
90#endif /* !defined(__cpp_lib_allocate_at_least) */
91#undef __glibcxx_want_allocate_at_least
92
93#if !defined(__cpp_lib_is_null_pointer)
94# if (__cplusplus >= 201103L)
95# define __glibcxx_is_null_pointer 201309L
96# if defined(__glibcxx_want_all) || defined(__glibcxx_want_is_null_pointer)
97# define __cpp_lib_is_null_pointer 201309L
98# endif
99# endif
100#endif /* !defined(__cpp_lib_is_null_pointer) */
101#undef __glibcxx_want_is_null_pointer
102
103#if !defined(__cpp_lib_result_of_sfinae)
104# if (__cplusplus >= 201103L)
105# define __glibcxx_result_of_sfinae 201210L
106# if defined(__glibcxx_want_all) || defined(__glibcxx_want_result_of_sfinae)
107# define __cpp_lib_result_of_sfinae 201210L
108# endif
109# endif
110#endif /* !defined(__cpp_lib_result_of_sfinae) */
111#undef __glibcxx_want_result_of_sfinae
112
113#if !defined(__cpp_lib_shared_ptr_arrays)
114# if (__cplusplus >= 202002L) && _GLIBCXX_HOSTED
115# define __glibcxx_shared_ptr_arrays 201707L
116# if defined(__glibcxx_want_all) || defined(__glibcxx_want_shared_ptr_arrays)
117# define __cpp_lib_shared_ptr_arrays 201707L
118# endif
119# elif (__cplusplus >= 201103L) && _GLIBCXX_HOSTED
120# define __glibcxx_shared_ptr_arrays 201611L
121# if defined(__glibcxx_want_all) || defined(__glibcxx_want_shared_ptr_arrays)
122# define __cpp_lib_shared_ptr_arrays 201611L
123# endif
124# endif
125#endif /* !defined(__cpp_lib_shared_ptr_arrays) */
126#undef __glibcxx_want_shared_ptr_arrays
127
128#if !defined(__cpp_lib_is_swappable)
129# if ((defined(__STRICT_ANSI__) && __cplusplus >= 201703L) || (!defined(__STRICT_ANSI__) && __cplusplus >= 201103L))
130# define __glibcxx_is_swappable 201603L
131# if defined(__glibcxx_want_all) || defined(__glibcxx_want_is_swappable)
132# define __cpp_lib_is_swappable 201603L
133# endif
134# endif
135#endif /* !defined(__cpp_lib_is_swappable) */
136#undef __glibcxx_want_is_swappable
137
138#if !defined(__cpp_lib_void_t)
139# if ((defined(__STRICT_ANSI__) && __cplusplus >= 201703L) || (!defined(__STRICT_ANSI__) && __cplusplus >= 201103L))
140# define __glibcxx_void_t 201411L
141# if defined(__glibcxx_want_all) || defined(__glibcxx_want_void_t)
142# define __cpp_lib_void_t 201411L
143# endif
144# endif
145#endif /* !defined(__cpp_lib_void_t) */
146#undef __glibcxx_want_void_t
147
148#if !defined(__cpp_lib_enable_shared_from_this)
149# if ((defined(__STRICT_ANSI__) && __cplusplus >= 201703L) || (!defined(__STRICT_ANSI__) && __cplusplus >= 201103L)) && _GLIBCXX_HOSTED
150# define __glibcxx_enable_shared_from_this 201603L
151# if defined(__glibcxx_want_all) || defined(__glibcxx_want_enable_shared_from_this)
152# define __cpp_lib_enable_shared_from_this 201603L
153# endif
154# endif
155#endif /* !defined(__cpp_lib_enable_shared_from_this) */
156#undef __glibcxx_want_enable_shared_from_this
157
158#if !defined(__cpp_lib_math_spec_funcs)
159# if (__cplusplus >= 201103L)
160# define __glibcxx_math_spec_funcs 201003L
161# if defined(__glibcxx_want_all) || defined(__glibcxx_want_math_spec_funcs)
162# define __STDCPP_MATH_SPEC_FUNCS__ 201003L
163# endif
164# endif
165#endif /* !defined(__cpp_lib_math_spec_funcs) */
166#undef __glibcxx_want_math_spec_funcs
167
168#if !defined(__cpp_lib_coroutine)
169# if (__cplusplus >= 201402L) && (__cpp_impl_coroutine)
170# define __glibcxx_coroutine 201902L
171# if defined(__glibcxx_want_all) || defined(__glibcxx_want_coroutine)
172# define __cpp_lib_coroutine 201902L
173# endif
174# endif
175#endif /* !defined(__cpp_lib_coroutine) */
176#undef __glibcxx_want_coroutine
177
178#if !defined(__cpp_lib_exchange_function)
179# if (__cplusplus >= 201402L)
180# define __glibcxx_exchange_function 201304L
181# if defined(__glibcxx_want_all) || defined(__glibcxx_want_exchange_function)
182# define __cpp_lib_exchange_function 201304L
183# endif
184# endif
185#endif /* !defined(__cpp_lib_exchange_function) */
186#undef __glibcxx_want_exchange_function
187
188#if !defined(__cpp_lib_integer_sequence)
189# if (__cplusplus > 202302L) && (__cpp_pack_indexing)
190# define __glibcxx_integer_sequence 202511L
191# if defined(__glibcxx_want_all) || defined(__glibcxx_want_integer_sequence)
192# define __cpp_lib_integer_sequence 202511L
193# endif
194# elif (__cplusplus >= 201402L)
195# define __glibcxx_integer_sequence 201304L
196# if defined(__glibcxx_want_all) || defined(__glibcxx_want_integer_sequence)
197# define __cpp_lib_integer_sequence 201304L
198# endif
199# endif
200#endif /* !defined(__cpp_lib_integer_sequence) */
201#undef __glibcxx_want_integer_sequence
202
203#if !defined(__cpp_lib_integral_constant_callable)
204# if (__cplusplus >= 201402L)
205# define __glibcxx_integral_constant_callable 201304L
206# if defined(__glibcxx_want_all) || defined(__glibcxx_want_integral_constant_callable)
207# define __cpp_lib_integral_constant_callable 201304L
208# endif
209# endif
210#endif /* !defined(__cpp_lib_integral_constant_callable) */
211#undef __glibcxx_want_integral_constant_callable
212
213#if !defined(__cpp_lib_is_final)
214# if (__cplusplus >= 201402L)
215# define __glibcxx_is_final 201402L
216# if defined(__glibcxx_want_all) || defined(__glibcxx_want_is_final)
217# define __cpp_lib_is_final 201402L
218# endif
219# endif
220#endif /* !defined(__cpp_lib_is_final) */
221#undef __glibcxx_want_is_final
222
223#if !defined(__cpp_lib_make_reverse_iterator)
224# if (__cplusplus >= 201402L)
225# define __glibcxx_make_reverse_iterator 201402L
226# if defined(__glibcxx_want_all) || defined(__glibcxx_want_make_reverse_iterator)
227# define __cpp_lib_make_reverse_iterator 201402L
228# endif
229# endif
230#endif /* !defined(__cpp_lib_make_reverse_iterator) */
231#undef __glibcxx_want_make_reverse_iterator
232
233#if !defined(__cpp_lib_null_iterators)
234# if (__cplusplus >= 201402L)
235# define __glibcxx_null_iterators 201304L
236# if defined(__glibcxx_want_all) || defined(__glibcxx_want_null_iterators)
237# define __cpp_lib_null_iterators 201304L
238# endif
239# endif
240#endif /* !defined(__cpp_lib_null_iterators) */
241#undef __glibcxx_want_null_iterators
242
243#if !defined(__cpp_lib_transformation_trait_aliases)
244# if (__cplusplus >= 201402L)
245# define __glibcxx_transformation_trait_aliases 201304L
246# if defined(__glibcxx_want_all) || defined(__glibcxx_want_transformation_trait_aliases)
247# define __cpp_lib_transformation_trait_aliases 201304L
248# endif
249# endif
250#endif /* !defined(__cpp_lib_transformation_trait_aliases) */
251#undef __glibcxx_want_transformation_trait_aliases
252
253#if !defined(__cpp_lib_transparent_operators)
254# if (__cplusplus >= 201402L)
255# define __glibcxx_transparent_operators 201510L
256# if defined(__glibcxx_want_all) || defined(__glibcxx_want_transparent_operators)
257# define __cpp_lib_transparent_operators 201510L
258# endif
259# endif
260#endif /* !defined(__cpp_lib_transparent_operators) */
261#undef __glibcxx_want_transparent_operators
262
263#if !defined(__cpp_lib_tuple_element_t)
264# if (__cplusplus >= 201402L)
265# define __glibcxx_tuple_element_t 201402L
266# if defined(__glibcxx_want_all) || defined(__glibcxx_want_tuple_element_t)
267# define __cpp_lib_tuple_element_t 201402L
268# endif
269# endif
270#endif /* !defined(__cpp_lib_tuple_element_t) */
271#undef __glibcxx_want_tuple_element_t
272
273#if !defined(__cpp_lib_tuples_by_type)
274# if (__cplusplus >= 201402L)
275# define __glibcxx_tuples_by_type 201304L
276# if defined(__glibcxx_want_all) || defined(__glibcxx_want_tuples_by_type)
277# define __cpp_lib_tuples_by_type 201304L
278# endif
279# endif
280#endif /* !defined(__cpp_lib_tuples_by_type) */
281#undef __glibcxx_want_tuples_by_type
282
283#if !defined(__cpp_lib_robust_nonmodifying_seq_ops)
284# if (__cplusplus >= 201402L)
285# define __glibcxx_robust_nonmodifying_seq_ops 201304L
286# if defined(__glibcxx_want_all) || defined(__glibcxx_want_robust_nonmodifying_seq_ops)
287# define __cpp_lib_robust_nonmodifying_seq_ops 201304L
288# endif
289# endif
290#endif /* !defined(__cpp_lib_robust_nonmodifying_seq_ops) */
291#undef __glibcxx_want_robust_nonmodifying_seq_ops
292
293#if !defined(__cpp_lib_to_chars)
294# if (__cplusplus > 202302L) && (_GLIBCXX_FLOAT_IS_IEEE_BINARY32 && _GLIBCXX_DOUBLE_IS_IEEE_BINARY64 && __SIZE_WIDTH__ >= 32)
295# define __glibcxx_to_chars 202306L
296# if defined(__glibcxx_want_all) || defined(__glibcxx_want_to_chars)
297# define __cpp_lib_to_chars 202306L
298# endif
299# elif (__cplusplus >= 201402L) && (_GLIBCXX_FLOAT_IS_IEEE_BINARY32 && _GLIBCXX_DOUBLE_IS_IEEE_BINARY64 && __SIZE_WIDTH__ >= 32)
300# define __glibcxx_to_chars 201611L
301# if defined(__glibcxx_want_all) || defined(__glibcxx_want_to_chars)
302# define __cpp_lib_to_chars 201611L
303# endif
304# endif
305#endif /* !defined(__cpp_lib_to_chars) */
306#undef __glibcxx_want_to_chars
307
308#if !defined(__cpp_lib_chrono_udls)
309# if (__cplusplus >= 201402L)
310# define __glibcxx_chrono_udls 201304L
311# if defined(__glibcxx_want_all) || defined(__glibcxx_want_chrono_udls)
312# define __cpp_lib_chrono_udls 201304L
313# endif
314# endif
315#endif /* !defined(__cpp_lib_chrono_udls) */
316#undef __glibcxx_want_chrono_udls
317
318#if !defined(__cpp_lib_complex_udls)
319# if (__cplusplus >= 201402L) && _GLIBCXX_HOSTED
320# define __glibcxx_complex_udls 201309L
321# if defined(__glibcxx_want_all) || defined(__glibcxx_want_complex_udls)
322# define __cpp_lib_complex_udls 201309L
323# endif
324# endif
325#endif /* !defined(__cpp_lib_complex_udls) */
326#undef __glibcxx_want_complex_udls
327
328#if !defined(__cpp_lib_generic_associative_lookup)
329# if (__cplusplus >= 201402L) && _GLIBCXX_HOSTED
330# define __glibcxx_generic_associative_lookup 201304L
331# if defined(__glibcxx_want_all) || defined(__glibcxx_want_generic_associative_lookup)
332# define __cpp_lib_generic_associative_lookup 201304L
333# endif
334# endif
335#endif /* !defined(__cpp_lib_generic_associative_lookup) */
336#undef __glibcxx_want_generic_associative_lookup
337
338#if !defined(__cpp_lib_make_unique)
339# if (__cplusplus >= 201402L) && _GLIBCXX_HOSTED
340# define __glibcxx_make_unique 201304L
341# if defined(__glibcxx_want_all) || defined(__glibcxx_want_make_unique)
342# define __cpp_lib_make_unique 201304L
343# endif
344# endif
345#endif /* !defined(__cpp_lib_make_unique) */
346#undef __glibcxx_want_make_unique
347
348#if !defined(__cpp_lib_quoted_string_io)
349# if (__cplusplus >= 201402L) && _GLIBCXX_HOSTED
350# define __glibcxx_quoted_string_io 201304L
351# if defined(__glibcxx_want_all) || defined(__glibcxx_want_quoted_string_io)
352# define __cpp_lib_quoted_string_io 201304L
353# endif
354# endif
355#endif /* !defined(__cpp_lib_quoted_string_io) */
356#undef __glibcxx_want_quoted_string_io
357
358#if !defined(__cpp_lib_shared_timed_mutex)
359# if (__cplusplus >= 201402L) && defined(_GLIBCXX_HAS_GTHREADS) && _GLIBCXX_HOSTED
360# define __glibcxx_shared_timed_mutex 201402L
361# if defined(__glibcxx_want_all) || defined(__glibcxx_want_shared_timed_mutex)
362# define __cpp_lib_shared_timed_mutex 201402L
363# endif
364# endif
365#endif /* !defined(__cpp_lib_shared_timed_mutex) */
366#undef __glibcxx_want_shared_timed_mutex
367
368#if !defined(__cpp_lib_string_udls)
369# if (__cplusplus >= 201402L) && _GLIBCXX_HOSTED
370# define __glibcxx_string_udls 201304L
371# if defined(__glibcxx_want_all) || defined(__glibcxx_want_string_udls)
372# define __cpp_lib_string_udls 201304L
373# endif
374# endif
375#endif /* !defined(__cpp_lib_string_udls) */
376#undef __glibcxx_want_string_udls
377
378#if !defined(__cpp_lib_addressof_constexpr)
379# if (__cplusplus >= 201703L)
380# define __glibcxx_addressof_constexpr 201603L
381# if defined(__glibcxx_want_all) || defined(__glibcxx_want_addressof_constexpr)
382# define __cpp_lib_addressof_constexpr 201603L
383# endif
384# endif
385#endif /* !defined(__cpp_lib_addressof_constexpr) */
386#undef __glibcxx_want_addressof_constexpr
387
388#if !defined(__cpp_lib_any)
389# if (__cplusplus >= 201703L)
390# define __glibcxx_any 201606L
391# if defined(__glibcxx_want_all) || defined(__glibcxx_want_any)
392# define __cpp_lib_any 201606L
393# endif
394# endif
395#endif /* !defined(__cpp_lib_any) */
396#undef __glibcxx_want_any
397
398#if !defined(__cpp_lib_apply)
399# if (__cplusplus >= 201703L)
400# define __glibcxx_apply 201603L
401# if defined(__glibcxx_want_all) || defined(__glibcxx_want_apply)
402# define __cpp_lib_apply 201603L
403# endif
404# endif
405#endif /* !defined(__cpp_lib_apply) */
406#undef __glibcxx_want_apply
407
408#if !defined(__cpp_lib_as_const)
409# if (__cplusplus >= 201703L)
410# define __glibcxx_as_const 201510L
411# if defined(__glibcxx_want_all) || defined(__glibcxx_want_as_const)
412# define __cpp_lib_as_const 201510L
413# endif
414# endif
415#endif /* !defined(__cpp_lib_as_const) */
416#undef __glibcxx_want_as_const
417
418#if !defined(__cpp_lib_atomic_is_always_lock_free)
419# if (__cplusplus >= 201703L)
420# define __glibcxx_atomic_is_always_lock_free 201603L
421# if defined(__glibcxx_want_all) || defined(__glibcxx_want_atomic_is_always_lock_free)
422# define __cpp_lib_atomic_is_always_lock_free 201603L
423# endif
424# endif
425#endif /* !defined(__cpp_lib_atomic_is_always_lock_free) */
426#undef __glibcxx_want_atomic_is_always_lock_free
427
428#if !defined(__cpp_lib_bool_constant)
429# if (__cplusplus >= 201703L)
430# define __glibcxx_bool_constant 201505L
431# if defined(__glibcxx_want_all) || defined(__glibcxx_want_bool_constant)
432# define __cpp_lib_bool_constant 201505L
433# endif
434# endif
435#endif /* !defined(__cpp_lib_bool_constant) */
436#undef __glibcxx_want_bool_constant
437
438#if !defined(__cpp_lib_byte)
439# if (__cplusplus >= 201703L)
440# define __glibcxx_byte 201603L
441# if defined(__glibcxx_want_all) || defined(__glibcxx_want_byte)
442# define __cpp_lib_byte 201603L
443# endif
444# endif
445#endif /* !defined(__cpp_lib_byte) */
446#undef __glibcxx_want_byte
447
448#if !defined(__cpp_lib_constant_wrapper)
449# if (__cplusplus > 202302L)
450# define __glibcxx_constant_wrapper 202606L
451# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constant_wrapper)
452# define __cpp_lib_constant_wrapper 202606L
453# endif
454# endif
455#endif /* !defined(__cpp_lib_constant_wrapper) */
456#undef __glibcxx_want_constant_wrapper
457
458#if !defined(__cpp_lib_has_unique_object_representations)
459# if (__cplusplus >= 201703L) && (defined(_GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP))
460# define __glibcxx_has_unique_object_representations 201606L
461# if defined(__glibcxx_want_all) || defined(__glibcxx_want_has_unique_object_representations)
462# define __cpp_lib_has_unique_object_representations 201606L
463# endif
464# endif
465#endif /* !defined(__cpp_lib_has_unique_object_representations) */
466#undef __glibcxx_want_has_unique_object_representations
467
468#if !defined(__cpp_lib_hardware_interference_size)
469# if (__cplusplus >= 201703L) && (defined(__GCC_DESTRUCTIVE_SIZE))
470# define __glibcxx_hardware_interference_size 201703L
471# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardware_interference_size)
472# define __cpp_lib_hardware_interference_size 201703L
473# endif
474# endif
475#endif /* !defined(__cpp_lib_hardware_interference_size) */
476#undef __glibcxx_want_hardware_interference_size
477
478#if !defined(__cpp_lib_invoke)
479# if (__cplusplus >= 201703L)
480# define __glibcxx_invoke 201411L
481# if defined(__glibcxx_want_all) || defined(__glibcxx_want_invoke)
482# define __cpp_lib_invoke 201411L
483# endif
484# endif
485#endif /* !defined(__cpp_lib_invoke) */
486#undef __glibcxx_want_invoke
487
488#if !defined(__cpp_lib_is_aggregate)
489# if (__cplusplus >= 201703L) && (defined(_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE))
490# define __glibcxx_is_aggregate 201703L
491# if defined(__glibcxx_want_all) || defined(__glibcxx_want_is_aggregate)
492# define __cpp_lib_is_aggregate 201703L
493# endif
494# endif
495#endif /* !defined(__cpp_lib_is_aggregate) */
496#undef __glibcxx_want_is_aggregate
497
498#if !defined(__cpp_lib_is_invocable)
499# if (__cplusplus >= 201703L)
500# define __glibcxx_is_invocable 201703L
501# if defined(__glibcxx_want_all) || defined(__glibcxx_want_is_invocable)
502# define __cpp_lib_is_invocable 201703L
503# endif
504# endif
505#endif /* !defined(__cpp_lib_is_invocable) */
506#undef __glibcxx_want_is_invocable
507
508#if !defined(__cpp_lib_launder)
509# if (__cplusplus >= 201703L) && (defined(_GLIBCXX_HAVE_BUILTIN_LAUNDER))
510# define __glibcxx_launder 201606L
511# if defined(__glibcxx_want_all) || defined(__glibcxx_want_launder)
512# define __cpp_lib_launder 201606L
513# endif
514# endif
515#endif /* !defined(__cpp_lib_launder) */
516#undef __glibcxx_want_launder
517
518#if !defined(__cpp_lib_logical_traits)
519# if (__cplusplus >= 201703L)
520# define __glibcxx_logical_traits 201510L
521# if defined(__glibcxx_want_all) || defined(__glibcxx_want_logical_traits)
522# define __cpp_lib_logical_traits 201510L
523# endif
524# endif
525#endif /* !defined(__cpp_lib_logical_traits) */
526#undef __glibcxx_want_logical_traits
527
528#if !defined(__cpp_lib_make_from_tuple)
529# if (__cplusplus >= 201703L)
530# define __glibcxx_make_from_tuple 201606L
531# if defined(__glibcxx_want_all) || defined(__glibcxx_want_make_from_tuple)
532# define __cpp_lib_make_from_tuple 201606L
533# endif
534# endif
535#endif /* !defined(__cpp_lib_make_from_tuple) */
536#undef __glibcxx_want_make_from_tuple
537
538#if !defined(__cpp_lib_not_fn)
539# if (__cplusplus > 202302L)
540# define __glibcxx_not_fn 202306L
541# if defined(__glibcxx_want_all) || defined(__glibcxx_want_not_fn)
542# define __cpp_lib_not_fn 202306L
543# endif
544# elif (__cplusplus >= 201703L)
545# define __glibcxx_not_fn 201603L
546# if defined(__glibcxx_want_all) || defined(__glibcxx_want_not_fn)
547# define __cpp_lib_not_fn 201603L
548# endif
549# endif
550#endif /* !defined(__cpp_lib_not_fn) */
551#undef __glibcxx_want_not_fn
552
553#if !defined(__cpp_lib_type_trait_variable_templates)
554# if (__cplusplus >= 201703L)
555# define __glibcxx_type_trait_variable_templates 201510L
556# if defined(__glibcxx_want_all) || defined(__glibcxx_want_type_trait_variable_templates)
557# define __cpp_lib_type_trait_variable_templates 201510L
558# endif
559# endif
560#endif /* !defined(__cpp_lib_type_trait_variable_templates) */
561#undef __glibcxx_want_type_trait_variable_templates
562
563#if !defined(__cpp_lib_variant)
564# if (__cplusplus > 202302L) && (__cpp_concepts >= 202002L && __cpp_constexpr >= 201811L && __cpp_explicit_this_parameter)
565# define __glibcxx_variant 202306L
566# if defined(__glibcxx_want_all) || defined(__glibcxx_want_variant)
567# define __cpp_lib_variant 202306L
568# endif
569# elif (__cplusplus >= 202002L) && (__cpp_concepts >= 202002L && __cpp_constexpr >= 201811L)
570# define __glibcxx_variant 202106L
571# if defined(__glibcxx_want_all) || defined(__glibcxx_want_variant)
572# define __cpp_lib_variant 202106L
573# endif
574# elif (__cplusplus >= 201703L)
575# define __glibcxx_variant 202102L
576# if defined(__glibcxx_want_all) || defined(__glibcxx_want_variant)
577# define __cpp_lib_variant 202102L
578# endif
579# endif
580#endif /* !defined(__cpp_lib_variant) */
581#undef __glibcxx_want_variant
582
583#if !defined(__cpp_lib_lcm)
584# if (__cplusplus >= 201703L)
585# define __glibcxx_lcm 201606L
586# if defined(__glibcxx_want_all) || defined(__glibcxx_want_lcm)
587# define __cpp_lib_lcm 201606L
588# endif
589# endif
590#endif /* !defined(__cpp_lib_lcm) */
591#undef __glibcxx_want_lcm
592
593#if !defined(__cpp_lib_gcd)
594# if (__cplusplus >= 201703L)
595# define __glibcxx_gcd 201606L
596# if defined(__glibcxx_want_all) || defined(__glibcxx_want_gcd)
597# define __cpp_lib_gcd 201606L
598# endif
599# endif
600#endif /* !defined(__cpp_lib_gcd) */
601#undef __glibcxx_want_gcd
602
603#if !defined(__cpp_lib_gcd_lcm)
604# if (__cplusplus >= 201703L)
605# define __glibcxx_gcd_lcm 201606L
606# if defined(__glibcxx_want_all) || defined(__glibcxx_want_gcd_lcm)
607# define __cpp_lib_gcd_lcm 201606L
608# endif
609# endif
610#endif /* !defined(__cpp_lib_gcd_lcm) */
611#undef __glibcxx_want_gcd_lcm
612
613#if !defined(__cpp_lib_raw_memory_algorithms)
614# if (__cplusplus > 202302L) && (__cpp_constexpr >= 202406L)
615# define __glibcxx_raw_memory_algorithms 202411L
616# if defined(__glibcxx_want_all) || defined(__glibcxx_want_raw_memory_algorithms)
617# define __cpp_lib_raw_memory_algorithms 202411L
618# endif
619# elif (__cplusplus >= 201703L)
620# define __glibcxx_raw_memory_algorithms 201606L
621# if defined(__glibcxx_want_all) || defined(__glibcxx_want_raw_memory_algorithms)
622# define __cpp_lib_raw_memory_algorithms 201606L
623# endif
624# endif
625#endif /* !defined(__cpp_lib_raw_memory_algorithms) */
626#undef __glibcxx_want_raw_memory_algorithms
627
628#if !defined(__cpp_lib_array_constexpr)
629# if (__cplusplus >= 202002L)
630# define __glibcxx_array_constexpr 201811L
631# if defined(__glibcxx_want_all) || defined(__glibcxx_want_array_constexpr)
632# define __cpp_lib_array_constexpr 201811L
633# endif
634# elif (__cplusplus >= 201703L)
635# define __glibcxx_array_constexpr 201803L
636# if defined(__glibcxx_want_all) || defined(__glibcxx_want_array_constexpr)
637# define __cpp_lib_array_constexpr 201803L
638# endif
639# endif
640#endif /* !defined(__cpp_lib_array_constexpr) */
641#undef __glibcxx_want_array_constexpr
642
643#if !defined(__cpp_lib_nonmember_container_access)
644# if (__cplusplus >= 201703L)
645# define __glibcxx_nonmember_container_access 201411L
646# if defined(__glibcxx_want_all) || defined(__glibcxx_want_nonmember_container_access)
647# define __cpp_lib_nonmember_container_access 201411L
648# endif
649# endif
650#endif /* !defined(__cpp_lib_nonmember_container_access) */
651#undef __glibcxx_want_nonmember_container_access
652
653#if !defined(__cpp_lib_clamp)
654# if (__cplusplus >= 201703L)
655# define __glibcxx_clamp 201603L
656# if defined(__glibcxx_want_all) || defined(__glibcxx_want_clamp)
657# define __cpp_lib_clamp 201603L
658# endif
659# endif
660#endif /* !defined(__cpp_lib_clamp) */
661#undef __glibcxx_want_clamp
662
663#if !defined(__cpp_lib_sample)
664# if (__cplusplus >= 201703L)
665# define __glibcxx_sample 201603L
666# if defined(__glibcxx_want_all) || defined(__glibcxx_want_sample)
667# define __cpp_lib_sample 201603L
668# endif
669# endif
670#endif /* !defined(__cpp_lib_sample) */
671#undef __glibcxx_want_sample
672
673#if !defined(__cpp_lib_boyer_moore_searcher)
674# if (__cplusplus >= 201703L) && _GLIBCXX_HOSTED
675# define __glibcxx_boyer_moore_searcher 201603L
676# if defined(__glibcxx_want_all) || defined(__glibcxx_want_boyer_moore_searcher)
677# define __cpp_lib_boyer_moore_searcher 201603L
678# endif
679# endif
680#endif /* !defined(__cpp_lib_boyer_moore_searcher) */
681#undef __glibcxx_want_boyer_moore_searcher
682
683#if !defined(__cpp_lib_chrono)
684# if (__cplusplus > 202302L) && _GLIBCXX_USE_CXX11_ABI && _GLIBCXX_HOSTED
685# define __glibcxx_chrono 202306L
686# if defined(__glibcxx_want_all) || defined(__glibcxx_want_chrono)
687# define __cpp_lib_chrono 202306L
688# endif
689# elif (__cplusplus >= 202002L) && _GLIBCXX_USE_CXX11_ABI && _GLIBCXX_HOSTED
690# define __glibcxx_chrono 201907L
691# if defined(__glibcxx_want_all) || defined(__glibcxx_want_chrono)
692# define __cpp_lib_chrono 201907L
693# endif
694# elif (__cplusplus >= 201703L) && _GLIBCXX_HOSTED
695# define __glibcxx_chrono 201611L
696# if defined(__glibcxx_want_all) || defined(__glibcxx_want_chrono)
697# define __cpp_lib_chrono 201611L
698# endif
699# endif
700#endif /* !defined(__cpp_lib_chrono) */
701#undef __glibcxx_want_chrono
702
703#if !defined(__cpp_lib_chrono_cxx20)
704# if (__cplusplus > 202302L)
705# define __glibcxx_chrono_cxx20 202306L
706# if defined(__glibcxx_want_all) || defined(__glibcxx_want_chrono_cxx20)
707# endif
708# elif (__cplusplus >= 202002L)
709# define __glibcxx_chrono_cxx20 201800L
710# if defined(__glibcxx_want_all) || defined(__glibcxx_want_chrono_cxx20)
711# endif
712# endif
713#endif /* !defined(__cpp_lib_chrono_cxx20) */
714#undef __glibcxx_want_chrono_cxx20
715
716#if !defined(__cpp_lib_execution)
717# if (__cplusplus >= 201703L) && _GLIBCXX_HOSTED
718# define __glibcxx_execution 201902L
719# if defined(__glibcxx_want_all) || defined(__glibcxx_want_execution)
720# define __cpp_lib_execution 201902L
721# endif
722# endif
723#endif /* !defined(__cpp_lib_execution) */
724#undef __glibcxx_want_execution
725
726#if !defined(__cpp_lib_filesystem)
727# if (__cplusplus >= 201703L) && _GLIBCXX_HOSTED
728# define __glibcxx_filesystem 201703L
729# if defined(__glibcxx_want_all) || defined(__glibcxx_want_filesystem)
730# define __cpp_lib_filesystem 201703L
731# endif
732# endif
733#endif /* !defined(__cpp_lib_filesystem) */
734#undef __glibcxx_want_filesystem
735
736#if !defined(__cpp_lib_hypot)
737# if (__cplusplus >= 201703L) && _GLIBCXX_HOSTED
738# define __glibcxx_hypot 201603L
739# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hypot)
740# define __cpp_lib_hypot 201603L
741# endif
742# endif
743#endif /* !defined(__cpp_lib_hypot) */
744#undef __glibcxx_want_hypot
745
746#if !defined(__cpp_lib_map_try_emplace)
747# if (__cplusplus >= 201703L) && _GLIBCXX_HOSTED
748# define __glibcxx_map_try_emplace 201411L
749# if defined(__glibcxx_want_all) || defined(__glibcxx_want_map_try_emplace)
750# define __cpp_lib_map_try_emplace 201411L
751# endif
752# endif
753#endif /* !defined(__cpp_lib_map_try_emplace) */
754#undef __glibcxx_want_map_try_emplace
755
756#if !defined(__cpp_lib_math_special_functions)
757# if (__cplusplus >= 201703L) && _GLIBCXX_HOSTED
758# define __glibcxx_math_special_functions 201603L
759# if defined(__glibcxx_want_all) || defined(__glibcxx_want_math_special_functions)
760# define __cpp_lib_math_special_functions 201603L
761# endif
762# endif
763#endif /* !defined(__cpp_lib_math_special_functions) */
764#undef __glibcxx_want_math_special_functions
765
766#if !defined(__cpp_lib_memory_resource)
767# if (__cplusplus >= 201703L) && defined(_GLIBCXX_HAS_GTHREADS) && _GLIBCXX_HOSTED
768# define __glibcxx_memory_resource 201603L
769# if defined(__glibcxx_want_all) || defined(__glibcxx_want_memory_resource)
770# define __cpp_lib_memory_resource 201603L
771# endif
772# elif (__cplusplus >= 201703L) && !defined(_GLIBCXX_HAS_GTHREADS) && _GLIBCXX_HOSTED
773# define __glibcxx_memory_resource 1L
774# if defined(__glibcxx_want_all) || defined(__glibcxx_want_memory_resource)
775# define __cpp_lib_memory_resource 1L
776# endif
777# endif
778#endif /* !defined(__cpp_lib_memory_resource) */
779#undef __glibcxx_want_memory_resource
780
781#if !defined(__cpp_lib_node_extract)
782# if (__cplusplus >= 201703L) && _GLIBCXX_HOSTED
783# define __glibcxx_node_extract 201606L
784# if defined(__glibcxx_want_all) || defined(__glibcxx_want_node_extract)
785# define __cpp_lib_node_extract 201606L
786# endif
787# endif
788#endif /* !defined(__cpp_lib_node_extract) */
789#undef __glibcxx_want_node_extract
790
791#if !defined(__cpp_lib_parallel_algorithm)
792# if (__cplusplus >= 201703L) && _GLIBCXX_HOSTED
793# define __glibcxx_parallel_algorithm 201603L
794# if defined(__glibcxx_want_all) || defined(__glibcxx_want_parallel_algorithm)
795# define __cpp_lib_parallel_algorithm 201603L
796# endif
797# endif
798#endif /* !defined(__cpp_lib_parallel_algorithm) */
799#undef __glibcxx_want_parallel_algorithm
800
801#if !defined(__cpp_lib_scoped_lock)
802# if (__cplusplus >= 201703L)
803# define __glibcxx_scoped_lock 201703L
804# if defined(__glibcxx_want_all) || defined(__glibcxx_want_scoped_lock)
805# define __cpp_lib_scoped_lock 201703L
806# endif
807# endif
808#endif /* !defined(__cpp_lib_scoped_lock) */
809#undef __glibcxx_want_scoped_lock
810
811#if !defined(__cpp_lib_shared_mutex)
812# if (__cplusplus >= 201703L) && defined(_GLIBCXX_HAS_GTHREADS) && _GLIBCXX_HOSTED
813# define __glibcxx_shared_mutex 201505L
814# if defined(__glibcxx_want_all) || defined(__glibcxx_want_shared_mutex)
815# define __cpp_lib_shared_mutex 201505L
816# endif
817# endif
818#endif /* !defined(__cpp_lib_shared_mutex) */
819#undef __glibcxx_want_shared_mutex
820
821#if !defined(__cpp_lib_shared_ptr_weak_type)
822# if (__cplusplus >= 201703L) && _GLIBCXX_HOSTED
823# define __glibcxx_shared_ptr_weak_type 201606L
824# if defined(__glibcxx_want_all) || defined(__glibcxx_want_shared_ptr_weak_type)
825# define __cpp_lib_shared_ptr_weak_type 201606L
826# endif
827# endif
828#endif /* !defined(__cpp_lib_shared_ptr_weak_type) */
829#undef __glibcxx_want_shared_ptr_weak_type
830
831#if !defined(__cpp_lib_string_view)
832# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED
833# define __glibcxx_string_view 202403L
834# if defined(__glibcxx_want_all) || defined(__glibcxx_want_string_view)
835# define __cpp_lib_string_view 202403L
836# endif
837# elif (__cplusplus >= 201703L) && _GLIBCXX_HOSTED
838# define __glibcxx_string_view 201803L
839# if defined(__glibcxx_want_all) || defined(__glibcxx_want_string_view)
840# define __cpp_lib_string_view 201803L
841# endif
842# endif
843#endif /* !defined(__cpp_lib_string_view) */
844#undef __glibcxx_want_string_view
845
846#if !defined(__cpp_lib_unordered_map_try_emplace)
847# if (__cplusplus >= 201703L) && _GLIBCXX_HOSTED
848# define __glibcxx_unordered_map_try_emplace 201411L
849# if defined(__glibcxx_want_all) || defined(__glibcxx_want_unordered_map_try_emplace)
850# define __cpp_lib_unordered_map_try_emplace 201411L
851# endif
852# endif
853#endif /* !defined(__cpp_lib_unordered_map_try_emplace) */
854#undef __glibcxx_want_unordered_map_try_emplace
855
856#if !defined(__cpp_lib_assume_aligned)
857# if (__cplusplus >= 202002L)
858# define __glibcxx_assume_aligned 201811L
859# if defined(__glibcxx_want_all) || defined(__glibcxx_want_assume_aligned)
860# define __cpp_lib_assume_aligned 201811L
861# endif
862# endif
863#endif /* !defined(__cpp_lib_assume_aligned) */
864#undef __glibcxx_want_assume_aligned
865
866#if !defined(__cpp_lib_is_sufficiently_aligned)
867# if (__cplusplus > 202302L)
868# define __glibcxx_is_sufficiently_aligned 202411L
869# if defined(__glibcxx_want_all) || defined(__glibcxx_want_is_sufficiently_aligned)
870# define __cpp_lib_is_sufficiently_aligned 202411L
871# endif
872# endif
873#endif /* !defined(__cpp_lib_is_sufficiently_aligned) */
874#undef __glibcxx_want_is_sufficiently_aligned
875
876#if !defined(__cpp_lib_atomic_flag_test)
877# if (__cplusplus >= 202002L)
878# define __glibcxx_atomic_flag_test 201907L
879# if defined(__glibcxx_want_all) || defined(__glibcxx_want_atomic_flag_test)
880# define __cpp_lib_atomic_flag_test 201907L
881# endif
882# endif
883#endif /* !defined(__cpp_lib_atomic_flag_test) */
884#undef __glibcxx_want_atomic_flag_test
885
886#if !defined(__cpp_lib_atomic_float)
887# if (__cplusplus >= 202002L)
888# define __glibcxx_atomic_float 201711L
889# if defined(__glibcxx_want_all) || defined(__glibcxx_want_atomic_float)
890# define __cpp_lib_atomic_float 201711L
891# endif
892# endif
893#endif /* !defined(__cpp_lib_atomic_float) */
894#undef __glibcxx_want_atomic_float
895
896#if !defined(__cpp_lib_atomic_min_max)
897# if (__cplusplus > 202302L)
898# define __glibcxx_atomic_min_max 202403L
899# if defined(__glibcxx_want_all) || defined(__glibcxx_want_atomic_min_max)
900# define __cpp_lib_atomic_min_max 202403L
901# endif
902# endif
903#endif /* !defined(__cpp_lib_atomic_min_max) */
904#undef __glibcxx_want_atomic_min_max
905
906#if !defined(__cpp_lib_atomic_lock_free_type_aliases)
907# if (__cplusplus >= 202002L) && ((__GCC_ATOMIC_INT_LOCK_FREE | __GCC_ATOMIC_LONG_LOCK_FREE | __GCC_ATOMIC_CHAR_LOCK_FREE) & 2)
908# define __glibcxx_atomic_lock_free_type_aliases 201907L
909# if defined(__glibcxx_want_all) || defined(__glibcxx_want_atomic_lock_free_type_aliases)
910# define __cpp_lib_atomic_lock_free_type_aliases 201907L
911# endif
912# endif
913#endif /* !defined(__cpp_lib_atomic_lock_free_type_aliases) */
914#undef __glibcxx_want_atomic_lock_free_type_aliases
915
916#if !defined(__cpp_lib_atomic_ref)
917# if (__cplusplus > 202302L)
918# define __glibcxx_atomic_ref 202603L
919# if defined(__glibcxx_want_all) || defined(__glibcxx_want_atomic_ref)
920# define __cpp_lib_atomic_ref 202603L
921# endif
922# elif (__cplusplus >= 202002L)
923# define __glibcxx_atomic_ref 201806L
924# if defined(__glibcxx_want_all) || defined(__glibcxx_want_atomic_ref)
925# define __cpp_lib_atomic_ref 201806L
926# endif
927# endif
928#endif /* !defined(__cpp_lib_atomic_ref) */
929#undef __glibcxx_want_atomic_ref
930
931#if !defined(__cpp_lib_atomic_value_initialization)
932# if (__cplusplus >= 202002L) && (__cpp_concepts >= 201907L)
933# define __glibcxx_atomic_value_initialization 201911L
934# if defined(__glibcxx_want_all) || defined(__glibcxx_want_atomic_value_initialization)
935# define __cpp_lib_atomic_value_initialization 201911L
936# endif
937# endif
938#endif /* !defined(__cpp_lib_atomic_value_initialization) */
939#undef __glibcxx_want_atomic_value_initialization
940
941#if !defined(__cpp_lib_bind_front)
942# if (__cplusplus > 202302L)
943# define __glibcxx_bind_front 202306L
944# if defined(__glibcxx_want_all) || defined(__glibcxx_want_bind_front)
945# define __cpp_lib_bind_front 202306L
946# endif
947# elif (__cplusplus >= 202002L)
948# define __glibcxx_bind_front 201907L
949# if defined(__glibcxx_want_all) || defined(__glibcxx_want_bind_front)
950# define __cpp_lib_bind_front 201907L
951# endif
952# endif
953#endif /* !defined(__cpp_lib_bind_front) */
954#undef __glibcxx_want_bind_front
955
956#if !defined(__cpp_lib_bind_back)
957# if (__cplusplus > 202302L)
958# define __glibcxx_bind_back 202306L
959# if defined(__glibcxx_want_all) || defined(__glibcxx_want_bind_back)
960# define __cpp_lib_bind_back 202306L
961# endif
962# elif (__cplusplus > 202002L) && (__cpp_explicit_this_parameter)
963# define __glibcxx_bind_back 202202L
964# if defined(__glibcxx_want_all) || defined(__glibcxx_want_bind_back)
965# define __cpp_lib_bind_back 202202L
966# endif
967# endif
968#endif /* !defined(__cpp_lib_bind_back) */
969#undef __glibcxx_want_bind_back
970
971#if !defined(__cpp_lib_starts_ends_with)
972# if (__cplusplus >= 202002L)
973# define __glibcxx_starts_ends_with 201711L
974# if defined(__glibcxx_want_all) || defined(__glibcxx_want_starts_ends_with)
975# define __cpp_lib_starts_ends_with 201711L
976# endif
977# endif
978#endif /* !defined(__cpp_lib_starts_ends_with) */
979#undef __glibcxx_want_starts_ends_with
980
981#if !defined(__cpp_lib_bit_cast)
982# if (__cplusplus >= 202002L) && (__has_builtin(__builtin_bit_cast))
983# define __glibcxx_bit_cast 201806L
984# if defined(__glibcxx_want_all) || defined(__glibcxx_want_bit_cast)
985# define __cpp_lib_bit_cast 201806L
986# endif
987# endif
988#endif /* !defined(__cpp_lib_bit_cast) */
989#undef __glibcxx_want_bit_cast
990
991#if !defined(__cpp_lib_bitops)
992# if (__cplusplus > 202603L)
993# define __glibcxx_bitops 202606L
994# if defined(__glibcxx_want_all) || defined(__glibcxx_want_bitops)
995# define __cpp_lib_bitops 202606L
996# endif
997# elif (__cplusplus >= 202002L)
998# define __glibcxx_bitops 201907L
999# if defined(__glibcxx_want_all) || defined(__glibcxx_want_bitops)
1000# define __cpp_lib_bitops 201907L
1001# endif
1002# endif
1003#endif /* !defined(__cpp_lib_bitops) */
1004#undef __glibcxx_want_bitops
1005
1006#if !defined(__cpp_lib_bounded_array_traits)
1007# if (__cplusplus >= 202002L)
1008# define __glibcxx_bounded_array_traits 201902L
1009# if defined(__glibcxx_want_all) || defined(__glibcxx_want_bounded_array_traits)
1010# define __cpp_lib_bounded_array_traits 201902L
1011# endif
1012# endif
1013#endif /* !defined(__cpp_lib_bounded_array_traits) */
1014#undef __glibcxx_want_bounded_array_traits
1015
1016#if !defined(__cpp_lib_concepts)
1017# if (__cplusplus >= 202002L) && (__cpp_concepts >= 201907L)
1018# define __glibcxx_concepts 202207L
1019# if defined(__glibcxx_want_all) || defined(__glibcxx_want_concepts)
1020# define __cpp_lib_concepts 202207L
1021# endif
1022# endif
1023#endif /* !defined(__cpp_lib_concepts) */
1024#undef __glibcxx_want_concepts
1025
1026#if !defined(__cpp_lib_optional)
1027# if (__cplusplus > 202302L) && (__glibcxx_concepts)
1028# define __glibcxx_optional 202506L
1029# if defined(__glibcxx_want_all) || defined(__glibcxx_want_optional)
1030# define __cpp_lib_optional 202506L
1031# endif
1032# elif (__cplusplus > 202002L) && (__glibcxx_concepts)
1033# define __glibcxx_optional 202110L
1034# if defined(__glibcxx_want_all) || defined(__glibcxx_want_optional)
1035# define __cpp_lib_optional 202110L
1036# endif
1037# elif (__cplusplus >= 202002L)
1038# define __glibcxx_optional 202106L
1039# if defined(__glibcxx_want_all) || defined(__glibcxx_want_optional)
1040# define __cpp_lib_optional 202106L
1041# endif
1042# elif (__cplusplus >= 201703L)
1043# define __glibcxx_optional 201606L
1044# if defined(__glibcxx_want_all) || defined(__glibcxx_want_optional)
1045# define __cpp_lib_optional 201606L
1046# endif
1047# endif
1048#endif /* !defined(__cpp_lib_optional) */
1049#undef __glibcxx_want_optional
1050
1051#if !defined(__cpp_lib_optional_range_support)
1052# if (__cplusplus > 202302L)
1053# define __glibcxx_optional_range_support 202406L
1054# if defined(__glibcxx_want_all) || defined(__glibcxx_want_optional_range_support)
1055# define __cpp_lib_optional_range_support 202406L
1056# endif
1057# endif
1058#endif /* !defined(__cpp_lib_optional_range_support) */
1059#undef __glibcxx_want_optional_range_support
1060
1061#if !defined(__cpp_lib_destroying_delete)
1062# if (__cplusplus >= 202002L) && (__cpp_impl_destroying_delete)
1063# define __glibcxx_destroying_delete 201806L
1064# if defined(__glibcxx_want_all) || defined(__glibcxx_want_destroying_delete)
1065# define __cpp_lib_destroying_delete 201806L
1066# endif
1067# endif
1068#endif /* !defined(__cpp_lib_destroying_delete) */
1069#undef __glibcxx_want_destroying_delete
1070
1071#if !defined(__cpp_lib_constexpr_string_view)
1072# if (__cplusplus >= 202002L)
1073# define __glibcxx_constexpr_string_view 201811L
1074# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_string_view)
1075# define __cpp_lib_constexpr_string_view 201811L
1076# endif
1077# endif
1078#endif /* !defined(__cpp_lib_constexpr_string_view) */
1079#undef __glibcxx_want_constexpr_string_view
1080
1081#if !defined(__cpp_lib_endian)
1082# if (__cplusplus >= 202002L)
1083# define __glibcxx_endian 201907L
1084# if defined(__glibcxx_want_all) || defined(__glibcxx_want_endian)
1085# define __cpp_lib_endian 201907L
1086# endif
1087# endif
1088#endif /* !defined(__cpp_lib_endian) */
1089#undef __glibcxx_want_endian
1090
1091#if !defined(__cpp_lib_int_pow2)
1092# if (__cplusplus >= 202002L)
1093# define __glibcxx_int_pow2 202002L
1094# if defined(__glibcxx_want_all) || defined(__glibcxx_want_int_pow2)
1095# define __cpp_lib_int_pow2 202002L
1096# endif
1097# endif
1098#endif /* !defined(__cpp_lib_int_pow2) */
1099#undef __glibcxx_want_int_pow2
1100
1101#if !defined(__cpp_lib_integer_comparison_functions)
1102# if (__cplusplus >= 202002L)
1103# define __glibcxx_integer_comparison_functions 202002L
1104# if defined(__glibcxx_want_all) || defined(__glibcxx_want_integer_comparison_functions)
1105# define __cpp_lib_integer_comparison_functions 202002L
1106# endif
1107# endif
1108#endif /* !defined(__cpp_lib_integer_comparison_functions) */
1109#undef __glibcxx_want_integer_comparison_functions
1110
1111#if !defined(__cpp_lib_is_constant_evaluated)
1112# if (__cplusplus >= 202002L) && (defined(_GLIBCXX_HAVE_IS_CONSTANT_EVALUATED))
1113# define __glibcxx_is_constant_evaluated 201811L
1114# if defined(__glibcxx_want_all) || defined(__glibcxx_want_is_constant_evaluated)
1115# define __cpp_lib_is_constant_evaluated 201811L
1116# endif
1117# endif
1118#endif /* !defined(__cpp_lib_is_constant_evaluated) */
1119#undef __glibcxx_want_is_constant_evaluated
1120
1121#if !defined(__cpp_lib_constexpr_char_traits)
1122# if (__cplusplus >= 202002L) && (defined(__glibcxx_is_constant_evaluated))
1123# define __glibcxx_constexpr_char_traits 201811L
1124# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_char_traits)
1125# define __cpp_lib_constexpr_char_traits 201811L
1126# endif
1127# elif (__cplusplus >= 201703L) && (_GLIBCXX_HAVE_IS_CONSTANT_EVALUATED)
1128# define __glibcxx_constexpr_char_traits 201611L
1129# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_char_traits)
1130# define __cpp_lib_constexpr_char_traits 201611L
1131# endif
1132# endif
1133#endif /* !defined(__cpp_lib_constexpr_char_traits) */
1134#undef __glibcxx_want_constexpr_char_traits
1135
1136#if !defined(__cpp_lib_is_layout_compatible)
1137# if (__cplusplus >= 202002L) && (__has_builtin(__is_layout_compatible) && __has_builtin(__builtin_is_corresponding_member))
1138# define __glibcxx_is_layout_compatible 201907L
1139# if defined(__glibcxx_want_all) || defined(__glibcxx_want_is_layout_compatible)
1140# define __cpp_lib_is_layout_compatible 201907L
1141# endif
1142# endif
1143#endif /* !defined(__cpp_lib_is_layout_compatible) */
1144#undef __glibcxx_want_is_layout_compatible
1145
1146#if !defined(__cpp_lib_is_nothrow_convertible)
1147# if (__cplusplus >= 202002L)
1148# define __glibcxx_is_nothrow_convertible 201806L
1149# if defined(__glibcxx_want_all) || defined(__glibcxx_want_is_nothrow_convertible)
1150# define __cpp_lib_is_nothrow_convertible 201806L
1151# endif
1152# endif
1153#endif /* !defined(__cpp_lib_is_nothrow_convertible) */
1154#undef __glibcxx_want_is_nothrow_convertible
1155
1156#if !defined(__cpp_lib_is_pointer_interconvertible)
1157# if (__cplusplus >= 202002L) && (__has_builtin(__is_pointer_interconvertible_base_of) && __has_builtin(__builtin_is_pointer_interconvertible_with_class))
1158# define __glibcxx_is_pointer_interconvertible 201907L
1159# if defined(__glibcxx_want_all) || defined(__glibcxx_want_is_pointer_interconvertible)
1160# define __cpp_lib_is_pointer_interconvertible 201907L
1161# endif
1162# endif
1163#endif /* !defined(__cpp_lib_is_pointer_interconvertible) */
1164#undef __glibcxx_want_is_pointer_interconvertible
1165
1166#if !defined(__cpp_lib_math_constants)
1167# if (__cplusplus >= 202002L)
1168# define __glibcxx_math_constants 201907L
1169# if defined(__glibcxx_want_all) || defined(__glibcxx_want_math_constants)
1170# define __cpp_lib_math_constants 201907L
1171# endif
1172# endif
1173#endif /* !defined(__cpp_lib_math_constants) */
1174#undef __glibcxx_want_math_constants
1175
1176#if !defined(__cpp_lib_make_obj_using_allocator)
1177# if (__cplusplus >= 202002L) && (__cpp_concepts)
1178# define __glibcxx_make_obj_using_allocator 201811L
1179# if defined(__glibcxx_want_all) || defined(__glibcxx_want_make_obj_using_allocator)
1180# endif
1181# endif
1182#endif /* !defined(__cpp_lib_make_obj_using_allocator) */
1183#undef __glibcxx_want_make_obj_using_allocator
1184
1185#if !defined(__cpp_lib_remove_cvref)
1186# if (__cplusplus >= 202002L)
1187# define __glibcxx_remove_cvref 201711L
1188# if defined(__glibcxx_want_all) || defined(__glibcxx_want_remove_cvref)
1189# define __cpp_lib_remove_cvref 201711L
1190# endif
1191# endif
1192#endif /* !defined(__cpp_lib_remove_cvref) */
1193#undef __glibcxx_want_remove_cvref
1194
1195#if !defined(__cpp_lib_source_location)
1196# if (__cplusplus >= 202002L) && (__has_builtin(__builtin_source_location))
1197# define __glibcxx_source_location 201907L
1198# if defined(__glibcxx_want_all) || defined(__glibcxx_want_source_location)
1199# define __cpp_lib_source_location 201907L
1200# endif
1201# endif
1202#endif /* !defined(__cpp_lib_source_location) */
1203#undef __glibcxx_want_source_location
1204
1205#if !defined(__cpp_lib_span)
1206# if (__cplusplus > 202302L) && (__glibcxx_concepts)
1207# define __glibcxx_span 202311L
1208# if defined(__glibcxx_want_all) || defined(__glibcxx_want_span)
1209# define __cpp_lib_span 202311L
1210# endif
1211# elif (__cplusplus >= 202002L) && (__glibcxx_concepts)
1212# define __glibcxx_span 202002L
1213# if defined(__glibcxx_want_all) || defined(__glibcxx_want_span)
1214# define __cpp_lib_span 202002L
1215# endif
1216# endif
1217#endif /* !defined(__cpp_lib_span) */
1218#undef __glibcxx_want_span
1219
1220#if !defined(__cpp_lib_mdspan)
1221# if (__cplusplus > 202302L)
1222# define __glibcxx_mdspan 202406L
1223# if defined(__glibcxx_want_all) || defined(__glibcxx_want_mdspan)
1224# define __cpp_lib_mdspan 202406L
1225# endif
1226# elif (__cplusplus > 202002L)
1227# define __glibcxx_mdspan 202207L
1228# if defined(__glibcxx_want_all) || defined(__glibcxx_want_mdspan)
1229# define __cpp_lib_mdspan 202207L
1230# endif
1231# endif
1232#endif /* !defined(__cpp_lib_mdspan) */
1233#undef __glibcxx_want_mdspan
1234
1235#if !defined(__cpp_lib_aligned_accessor)
1236# if (__cplusplus > 202302L) && (__glibcxx_assume_aligned && __glibcxx_is_sufficiently_aligned)
1237# define __glibcxx_aligned_accessor 202411L
1238# if defined(__glibcxx_want_all) || defined(__glibcxx_want_aligned_accessor)
1239# define __cpp_lib_aligned_accessor 202411L
1240# endif
1241# endif
1242#endif /* !defined(__cpp_lib_aligned_accessor) */
1243#undef __glibcxx_want_aligned_accessor
1244
1245#if !defined(__cpp_lib_padded_layouts)
1246# if (__cplusplus > 202302L)
1247# define __glibcxx_padded_layouts 202403L
1248# if defined(__glibcxx_want_all) || defined(__glibcxx_want_padded_layouts)
1249# endif
1250# endif
1251#endif /* !defined(__cpp_lib_padded_layouts) */
1252#undef __glibcxx_want_padded_layouts
1253
1254#if !defined(__cpp_lib_submdspan)
1255# if (__cplusplus > 202302L) && (__glibcxx_constant_wrapper >= 202506L)
1256# define __glibcxx_submdspan 202603L
1257# if defined(__glibcxx_want_all) || defined(__glibcxx_want_submdspan)
1258# define __cpp_lib_submdspan 202603L
1259# endif
1260# endif
1261#endif /* !defined(__cpp_lib_submdspan) */
1262#undef __glibcxx_want_submdspan
1263
1264#if !defined(__cpp_lib_ssize)
1265# if (__cplusplus >= 202002L)
1266# define __glibcxx_ssize 201902L
1267# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ssize)
1268# define __cpp_lib_ssize 201902L
1269# endif
1270# endif
1271#endif /* !defined(__cpp_lib_ssize) */
1272#undef __glibcxx_want_ssize
1273
1274#if !defined(__cpp_lib_three_way_comparison)
1275# if (__cplusplus >= 202002L) && (__cpp_impl_three_way_comparison >= 201907L && __glibcxx_concepts)
1276# define __glibcxx_three_way_comparison 201907L
1277# if defined(__glibcxx_want_all) || defined(__glibcxx_want_three_way_comparison)
1278# define __cpp_lib_three_way_comparison 201907L
1279# endif
1280# endif
1281#endif /* !defined(__cpp_lib_three_way_comparison) */
1282#undef __glibcxx_want_three_way_comparison
1283
1284#if !defined(__cpp_lib_to_address)
1285# if (__cplusplus >= 202002L)
1286# define __glibcxx_to_address 201711L
1287# if defined(__glibcxx_want_all) || defined(__glibcxx_want_to_address)
1288# define __cpp_lib_to_address 201711L
1289# endif
1290# endif
1291#endif /* !defined(__cpp_lib_to_address) */
1292#undef __glibcxx_want_to_address
1293
1294#if !defined(__cpp_lib_to_array)
1295# if (__cplusplus >= 202002L) && (__cpp_generic_lambdas >= 201707L)
1296# define __glibcxx_to_array 201907L
1297# if defined(__glibcxx_want_all) || defined(__glibcxx_want_to_array)
1298# define __cpp_lib_to_array 201907L
1299# endif
1300# endif
1301#endif /* !defined(__cpp_lib_to_array) */
1302#undef __glibcxx_want_to_array
1303
1304#if !defined(__cpp_lib_type_identity)
1305# if (__cplusplus >= 202002L)
1306# define __glibcxx_type_identity 201806L
1307# if defined(__glibcxx_want_all) || defined(__glibcxx_want_type_identity)
1308# define __cpp_lib_type_identity 201806L
1309# endif
1310# endif
1311#endif /* !defined(__cpp_lib_type_identity) */
1312#undef __glibcxx_want_type_identity
1313
1314#if !defined(__cpp_lib_unwrap_ref)
1315# if (__cplusplus >= 202002L)
1316# define __glibcxx_unwrap_ref 201811L
1317# if defined(__glibcxx_want_all) || defined(__glibcxx_want_unwrap_ref)
1318# define __cpp_lib_unwrap_ref 201811L
1319# endif
1320# endif
1321#endif /* !defined(__cpp_lib_unwrap_ref) */
1322#undef __glibcxx_want_unwrap_ref
1323
1324#if !defined(__cpp_lib_constexpr_iterator)
1325# if (__cplusplus >= 202002L)
1326# define __glibcxx_constexpr_iterator 201811L
1327# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_iterator)
1328# define __cpp_lib_constexpr_iterator 201811L
1329# endif
1330# endif
1331#endif /* !defined(__cpp_lib_constexpr_iterator) */
1332#undef __glibcxx_want_constexpr_iterator
1333
1334#if !defined(__cpp_lib_interpolate)
1335# if (__cplusplus >= 202002L)
1336# define __glibcxx_interpolate 201902L
1337# if defined(__glibcxx_want_all) || defined(__glibcxx_want_interpolate)
1338# define __cpp_lib_interpolate 201902L
1339# endif
1340# endif
1341#endif /* !defined(__cpp_lib_interpolate) */
1342#undef __glibcxx_want_interpolate
1343
1344#if !defined(__cpp_lib_constexpr_utility)
1345# if (__cplusplus >= 202002L)
1346# define __glibcxx_constexpr_utility 201811L
1347# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_utility)
1348# define __cpp_lib_constexpr_utility 201811L
1349# endif
1350# endif
1351#endif /* !defined(__cpp_lib_constexpr_utility) */
1352#undef __glibcxx_want_constexpr_utility
1353
1354#if !defined(__cpp_lib_shift)
1355# if (__cplusplus > 202002L)
1356# define __glibcxx_shift 202202L
1357# if defined(__glibcxx_want_all) || defined(__glibcxx_want_shift)
1358# define __cpp_lib_shift 202202L
1359# endif
1360# elif (__cplusplus >= 202002L)
1361# define __glibcxx_shift 201806L
1362# if defined(__glibcxx_want_all) || defined(__glibcxx_want_shift)
1363# define __cpp_lib_shift 201806L
1364# endif
1365# endif
1366#endif /* !defined(__cpp_lib_shift) */
1367#undef __glibcxx_want_shift
1368
1369#if !defined(__cpp_lib_ranges)
1370# if (__cplusplus > 202302L) && (__glibcxx_concepts)
1371# define __glibcxx_ranges 202406L
1372# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges)
1373# define __cpp_lib_ranges 202406L
1374# endif
1375# elif (__cplusplus > 202002L) && (__glibcxx_concepts)
1376# define __glibcxx_ranges 202302L
1377# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges)
1378# define __cpp_lib_ranges 202302L
1379# endif
1380# elif (__cplusplus >= 202002L) && (__glibcxx_concepts)
1381# define __glibcxx_ranges 202110L
1382# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges)
1383# define __cpp_lib_ranges 202110L
1384# endif
1385# endif
1386#endif /* !defined(__cpp_lib_ranges) */
1387#undef __glibcxx_want_ranges
1388
1389#if !defined(__cpp_lib_constexpr_numeric)
1390# if (__cplusplus >= 202002L)
1391# define __glibcxx_constexpr_numeric 201911L
1392# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_numeric)
1393# define __cpp_lib_constexpr_numeric 201911L
1394# endif
1395# endif
1396#endif /* !defined(__cpp_lib_constexpr_numeric) */
1397#undef __glibcxx_want_constexpr_numeric
1398
1399#if !defined(__cpp_lib_constexpr_functional)
1400# if (__cplusplus >= 202002L)
1401# define __glibcxx_constexpr_functional 201907L
1402# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_functional)
1403# define __cpp_lib_constexpr_functional 201907L
1404# endif
1405# endif
1406#endif /* !defined(__cpp_lib_constexpr_functional) */
1407#undef __glibcxx_want_constexpr_functional
1408
1409#if !defined(__cpp_lib_constexpr_algorithms)
1410# if (__cplusplus > 202302L)
1411# define __glibcxx_constexpr_algorithms 202306L
1412# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_algorithms)
1413# define __cpp_lib_constexpr_algorithms 202306L
1414# endif
1415# elif (__cplusplus >= 202002L)
1416# define __glibcxx_constexpr_algorithms 201806L
1417# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_algorithms)
1418# define __cpp_lib_constexpr_algorithms 201806L
1419# endif
1420# endif
1421#endif /* !defined(__cpp_lib_constexpr_algorithms) */
1422#undef __glibcxx_want_constexpr_algorithms
1423
1424#if !defined(__cpp_lib_constexpr_tuple)
1425# if (__cplusplus >= 202002L)
1426# define __glibcxx_constexpr_tuple 201811L
1427# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_tuple)
1428# define __cpp_lib_constexpr_tuple 201811L
1429# endif
1430# endif
1431#endif /* !defined(__cpp_lib_constexpr_tuple) */
1432#undef __glibcxx_want_constexpr_tuple
1433
1434#if !defined(__cpp_lib_constexpr_memory)
1435# if (__cplusplus > 202002L) && (__cpp_constexpr_dynamic_alloc)
1436# define __glibcxx_constexpr_memory 202202L
1437# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_memory)
1438# define __cpp_lib_constexpr_memory 202202L
1439# endif
1440# elif (__cplusplus >= 202002L)
1441# define __glibcxx_constexpr_memory 201811L
1442# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_memory)
1443# define __cpp_lib_constexpr_memory 201811L
1444# endif
1445# endif
1446#endif /* !defined(__cpp_lib_constexpr_memory) */
1447#undef __glibcxx_want_constexpr_memory
1448
1449#if !defined(__cpp_lib_atomic_shared_ptr)
1450# if (__cplusplus >= 202002L) && _GLIBCXX_HOSTED
1451# define __glibcxx_atomic_shared_ptr 201711L
1452# if defined(__glibcxx_want_all) || defined(__glibcxx_want_atomic_shared_ptr)
1453# define __cpp_lib_atomic_shared_ptr 201711L
1454# endif
1455# endif
1456#endif /* !defined(__cpp_lib_atomic_shared_ptr) */
1457#undef __glibcxx_want_atomic_shared_ptr
1458
1459#if !defined(__cpp_lib_atomic_wait)
1460# if (__cplusplus >= 202002L) && defined(_GLIBCXX_HAS_GTHREADS) && _GLIBCXX_HOSTED
1461# define __glibcxx_atomic_wait 201907L
1462# if defined(__glibcxx_want_all) || defined(__glibcxx_want_atomic_wait)
1463# define __cpp_lib_atomic_wait 201907L
1464# endif
1465# elif (__cplusplus >= 202002L) && !defined(_GLIBCXX_HAS_GTHREADS) && _GLIBCXX_HOSTED && (defined(_GLIBCXX_HAVE_LINUX_FUTEX))
1466# define __glibcxx_atomic_wait 201907L
1467# if defined(__glibcxx_want_all) || defined(__glibcxx_want_atomic_wait)
1468# define __cpp_lib_atomic_wait 201907L
1469# endif
1470# endif
1471#endif /* !defined(__cpp_lib_atomic_wait) */
1472#undef __glibcxx_want_atomic_wait
1473
1474#if !defined(__cpp_lib_barrier)
1475# if (__cplusplus >= 202002L) && (__cpp_aligned_new && __glibcxx_atomic_wait)
1476# define __glibcxx_barrier 201907L
1477# if defined(__glibcxx_want_all) || defined(__glibcxx_want_barrier)
1478# define __cpp_lib_barrier 201907L
1479# endif
1480# endif
1481#endif /* !defined(__cpp_lib_barrier) */
1482#undef __glibcxx_want_barrier
1483
1484#if !defined(__cpp_lib_constexpr_exceptions)
1485# if (__cplusplus > 202302L) && _GLIBCXX_USE_CXX11_ABI && (__cpp_constexpr_exceptions >= 202411L)
1486# define __glibcxx_constexpr_exceptions 202502L
1487# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_exceptions)
1488# define __cpp_lib_constexpr_exceptions 202502L
1489# endif
1490# endif
1491#endif /* !defined(__cpp_lib_constexpr_exceptions) */
1492#undef __glibcxx_want_constexpr_exceptions
1493
1494#if !defined(__cpp_lib_format)
1495# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED
1496# define __glibcxx_format 202603L
1497# if defined(__glibcxx_want_all) || defined(__glibcxx_want_format)
1498# define __cpp_lib_format 202603L
1499# endif
1500# elif (__cplusplus >= 202002L) && _GLIBCXX_HOSTED
1501# define __glibcxx_format 202304L
1502# if defined(__glibcxx_want_all) || defined(__glibcxx_want_format)
1503# define __cpp_lib_format 202304L
1504# endif
1505# endif
1506#endif /* !defined(__cpp_lib_format) */
1507#undef __glibcxx_want_format
1508
1509#if !defined(__cpp_lib_constexpr_format)
1510# if (__cplusplus > 202302L) && _GLIBCXX_USE_CXX11_ABI && _GLIBCXX_HOSTED && (__cpp_lib_constexpr_exceptions >= 202502L)
1511# define __glibcxx_constexpr_format 202511L
1512# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_format)
1513# define __cpp_lib_constexpr_format 202511L
1514# endif
1515# endif
1516#endif /* !defined(__cpp_lib_constexpr_format) */
1517#undef __glibcxx_want_constexpr_format
1518
1519#if !defined(__cpp_lib_format_uchar)
1520# if (__cplusplus >= 202002L) && _GLIBCXX_HOSTED
1521# define __glibcxx_format_uchar 202311L
1522# if defined(__glibcxx_want_all) || defined(__glibcxx_want_format_uchar)
1523# define __cpp_lib_format_uchar 202311L
1524# endif
1525# endif
1526#endif /* !defined(__cpp_lib_format_uchar) */
1527#undef __glibcxx_want_format_uchar
1528
1529#if !defined(__cpp_lib_constexpr_complex)
1530# if (__cplusplus >= 202002L) && _GLIBCXX_HOSTED
1531# define __glibcxx_constexpr_complex 201711L
1532# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_complex)
1533# define __cpp_lib_constexpr_complex 201711L
1534# endif
1535# endif
1536#endif /* !defined(__cpp_lib_constexpr_complex) */
1537#undef __glibcxx_want_constexpr_complex
1538
1539#if !defined(__cpp_lib_constexpr_dynamic_alloc)
1540# if (__cplusplus >= 202002L) && _GLIBCXX_HOSTED
1541# define __glibcxx_constexpr_dynamic_alloc 201907L
1542# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_dynamic_alloc)
1543# define __cpp_lib_constexpr_dynamic_alloc 201907L
1544# endif
1545# endif
1546#endif /* !defined(__cpp_lib_constexpr_dynamic_alloc) */
1547#undef __glibcxx_want_constexpr_dynamic_alloc
1548
1549#if !defined(__cpp_lib_constexpr_flat_map)
1550# if (__cplusplus > 202302L)
1551# define __glibcxx_constexpr_flat_map 202502L
1552# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_flat_map)
1553# define __cpp_lib_constexpr_flat_map 202502L
1554# endif
1555# endif
1556#endif /* !defined(__cpp_lib_constexpr_flat_map) */
1557#undef __glibcxx_want_constexpr_flat_map
1558
1559#if !defined(__cpp_lib_constexpr_flat_set)
1560# if (__cplusplus > 202302L)
1561# define __glibcxx_constexpr_flat_set 202502L
1562# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_flat_set)
1563# define __cpp_lib_constexpr_flat_set 202502L
1564# endif
1565# endif
1566#endif /* !defined(__cpp_lib_constexpr_flat_set) */
1567#undef __glibcxx_want_constexpr_flat_set
1568
1569#if !defined(__cpp_lib_constexpr_string)
1570# if (__cplusplus > 202302L) && _GLIBCXX_USE_CXX11_ABI && _GLIBCXX_HOSTED
1571# define __glibcxx_constexpr_string 202511L
1572# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_string)
1573# define __cpp_lib_constexpr_string 202511L
1574# endif
1575# elif (__cplusplus >= 202002L) && _GLIBCXX_USE_CXX11_ABI && _GLIBCXX_HOSTED && (defined(__glibcxx_is_constant_evaluated))
1576# define __glibcxx_constexpr_string 201907L
1577# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_string)
1578# define __cpp_lib_constexpr_string 201907L
1579# endif
1580# elif (__cplusplus >= 202002L) && !_GLIBCXX_USE_CXX11_ABI && _GLIBCXX_HOSTED && (defined(__glibcxx_is_constant_evaluated))
1581# define __glibcxx_constexpr_string 201811L
1582# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_string)
1583# define __cpp_lib_constexpr_string 201811L
1584# endif
1585# elif (__cplusplus >= 201703L) && _GLIBCXX_HOSTED && (_GLIBCXX_HAVE_IS_CONSTANT_EVALUATED)
1586# define __glibcxx_constexpr_string 201611L
1587# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_string)
1588# define __cpp_lib_constexpr_string 201611L
1589# endif
1590# endif
1591#endif /* !defined(__cpp_lib_constexpr_string) */
1592#undef __glibcxx_want_constexpr_string
1593
1594#if !defined(__cpp_lib_constexpr_vector)
1595# if (__cplusplus >= 202002L) && _GLIBCXX_HOSTED
1596# define __glibcxx_constexpr_vector 201907L
1597# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_vector)
1598# define __cpp_lib_constexpr_vector 201907L
1599# endif
1600# endif
1601#endif /* !defined(__cpp_lib_constexpr_vector) */
1602#undef __glibcxx_want_constexpr_vector
1603
1604#if !defined(__cpp_lib_constexpr_deque)
1605# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED
1606# define __glibcxx_constexpr_deque 202502L
1607# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_deque)
1608# define __cpp_lib_constexpr_deque 202502L
1609# endif
1610# endif
1611#endif /* !defined(__cpp_lib_constexpr_deque) */
1612#undef __glibcxx_want_constexpr_deque
1613
1614#if !defined(__cpp_lib_constexpr_queue)
1615# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED
1616# define __glibcxx_constexpr_queue 202502L
1617# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_queue)
1618# define __cpp_lib_constexpr_queue 202502L
1619# endif
1620# endif
1621#endif /* !defined(__cpp_lib_constexpr_queue) */
1622#undef __glibcxx_want_constexpr_queue
1623
1624#if !defined(__cpp_lib_constexpr_stack)
1625# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED
1626# define __glibcxx_constexpr_stack 202502L
1627# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_stack)
1628# define __cpp_lib_constexpr_stack 202502L
1629# endif
1630# endif
1631#endif /* !defined(__cpp_lib_constexpr_stack) */
1632#undef __glibcxx_want_constexpr_stack
1633
1634#if !defined(__cpp_lib_constrained_equality)
1635# if (__cplusplus > 202002L) && (__glibcxx_three_way_comparison)
1636# define __glibcxx_constrained_equality 202411L
1637# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constrained_equality)
1638# define __cpp_lib_constrained_equality 202411L
1639# endif
1640# elif (__cplusplus >= 202002L) && (__glibcxx_three_way_comparison)
1641# define __glibcxx_constrained_equality 202403L
1642# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constrained_equality)
1643# define __cpp_lib_constrained_equality 202403L
1644# endif
1645# endif
1646#endif /* !defined(__cpp_lib_constrained_equality) */
1647#undef __glibcxx_want_constrained_equality
1648
1649#if !defined(__cpp_lib_erase_if)
1650# if (__cplusplus >= 202002L) && _GLIBCXX_HOSTED
1651# define __glibcxx_erase_if 202002L
1652# if defined(__glibcxx_want_all) || defined(__glibcxx_want_erase_if)
1653# define __cpp_lib_erase_if 202002L
1654# endif
1655# endif
1656#endif /* !defined(__cpp_lib_erase_if) */
1657#undef __glibcxx_want_erase_if
1658
1659#if !defined(__cpp_lib_generic_unordered_lookup)
1660# if (__cplusplus >= 202002L) && _GLIBCXX_HOSTED
1661# define __glibcxx_generic_unordered_lookup 201811L
1662# if defined(__glibcxx_want_all) || defined(__glibcxx_want_generic_unordered_lookup)
1663# define __cpp_lib_generic_unordered_lookup 201811L
1664# endif
1665# endif
1666#endif /* !defined(__cpp_lib_generic_unordered_lookup) */
1667#undef __glibcxx_want_generic_unordered_lookup
1668
1669#if !defined(__cpp_lib_jthread)
1670# if (__cplusplus >= 202002L) && defined(_GLIBCXX_HAS_GTHREADS) && _GLIBCXX_HOSTED
1671# define __glibcxx_jthread 201911L
1672# if defined(__glibcxx_want_all) || defined(__glibcxx_want_jthread)
1673# define __cpp_lib_jthread 201911L
1674# endif
1675# endif
1676#endif /* !defined(__cpp_lib_jthread) */
1677#undef __glibcxx_want_jthread
1678
1679#if !defined(__cpp_lib_latch)
1680# if (__cplusplus >= 202002L) && (__glibcxx_atomic_wait)
1681# define __glibcxx_latch 201907L
1682# if defined(__glibcxx_want_all) || defined(__glibcxx_want_latch)
1683# define __cpp_lib_latch 201907L
1684# endif
1685# endif
1686#endif /* !defined(__cpp_lib_latch) */
1687#undef __glibcxx_want_latch
1688
1689#if !defined(__cpp_lib_list_remove_return_type)
1690# if (__cplusplus >= 202002L) && _GLIBCXX_HOSTED
1691# define __glibcxx_list_remove_return_type 201806L
1692# if defined(__glibcxx_want_all) || defined(__glibcxx_want_list_remove_return_type)
1693# define __cpp_lib_list_remove_return_type 201806L
1694# endif
1695# endif
1696#endif /* !defined(__cpp_lib_list_remove_return_type) */
1697#undef __glibcxx_want_list_remove_return_type
1698
1699#if !defined(__cpp_lib_polymorphic_allocator)
1700# if (__cplusplus >= 202002L) && _GLIBCXX_HOSTED
1701# define __glibcxx_polymorphic_allocator 201902L
1702# if defined(__glibcxx_want_all) || defined(__glibcxx_want_polymorphic_allocator)
1703# define __cpp_lib_polymorphic_allocator 201902L
1704# endif
1705# endif
1706#endif /* !defined(__cpp_lib_polymorphic_allocator) */
1707#undef __glibcxx_want_polymorphic_allocator
1708
1709#if !defined(__cpp_lib_move_iterator_concept)
1710# if (__cplusplus >= 202002L) && (__glibcxx_concepts)
1711# define __glibcxx_move_iterator_concept 202207L
1712# if defined(__glibcxx_want_all) || defined(__glibcxx_want_move_iterator_concept)
1713# define __cpp_lib_move_iterator_concept 202207L
1714# endif
1715# endif
1716#endif /* !defined(__cpp_lib_move_iterator_concept) */
1717#undef __glibcxx_want_move_iterator_concept
1718
1719#if !defined(__cpp_lib_semaphore)
1720# if (__cplusplus >= 202002L) && _GLIBCXX_HOSTED && (__glibcxx_atomic_wait)
1721# define __glibcxx_semaphore 201907L
1722# if defined(__glibcxx_want_all) || defined(__glibcxx_want_semaphore)
1723# define __cpp_lib_semaphore 201907L
1724# endif
1725# endif
1726#endif /* !defined(__cpp_lib_semaphore) */
1727#undef __glibcxx_want_semaphore
1728
1729#if !defined(__cpp_lib_smart_ptr_for_overwrite)
1730# if (__cplusplus >= 202002L) && _GLIBCXX_HOSTED
1731# define __glibcxx_smart_ptr_for_overwrite 202002L
1732# if defined(__glibcxx_want_all) || defined(__glibcxx_want_smart_ptr_for_overwrite)
1733# define __cpp_lib_smart_ptr_for_overwrite 202002L
1734# endif
1735# endif
1736#endif /* !defined(__cpp_lib_smart_ptr_for_overwrite) */
1737#undef __glibcxx_want_smart_ptr_for_overwrite
1738
1739#if !defined(__cpp_lib_syncbuf)
1740# if (__cplusplus >= 202002L) && _GLIBCXX_USE_CXX11_ABI && _GLIBCXX_HOSTED
1741# define __glibcxx_syncbuf 201803L
1742# if defined(__glibcxx_want_all) || defined(__glibcxx_want_syncbuf)
1743# define __cpp_lib_syncbuf 201803L
1744# endif
1745# endif
1746#endif /* !defined(__cpp_lib_syncbuf) */
1747#undef __glibcxx_want_syncbuf
1748
1749#if !defined(__cpp_lib_byteswap)
1750# if (__cplusplus > 202002L)
1751# define __glibcxx_byteswap 202110L
1752# if defined(__glibcxx_want_all) || defined(__glibcxx_want_byteswap)
1753# define __cpp_lib_byteswap 202110L
1754# endif
1755# endif
1756#endif /* !defined(__cpp_lib_byteswap) */
1757#undef __glibcxx_want_byteswap
1758
1759#if !defined(__cpp_lib_constexpr_charconv)
1760# if (__cplusplus > 202002L)
1761# define __glibcxx_constexpr_charconv 202207L
1762# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_charconv)
1763# define __cpp_lib_constexpr_charconv 202207L
1764# endif
1765# endif
1766#endif /* !defined(__cpp_lib_constexpr_charconv) */
1767#undef __glibcxx_want_constexpr_charconv
1768
1769#if !defined(__cpp_lib_constexpr_typeinfo)
1770# if (__cplusplus > 202002L)
1771# define __glibcxx_constexpr_typeinfo 202106L
1772# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_typeinfo)
1773# define __cpp_lib_constexpr_typeinfo 202106L
1774# endif
1775# endif
1776#endif /* !defined(__cpp_lib_constexpr_typeinfo) */
1777#undef __glibcxx_want_constexpr_typeinfo
1778
1779#if !defined(__cpp_lib_expected)
1780# if (__cplusplus > 202002L) && (__cpp_concepts >= 202002L)
1781# define __glibcxx_expected 202211L
1782# if defined(__glibcxx_want_all) || defined(__glibcxx_want_expected)
1783# define __cpp_lib_expected 202211L
1784# endif
1785# endif
1786#endif /* !defined(__cpp_lib_expected) */
1787#undef __glibcxx_want_expected
1788
1789#if !defined(__cpp_lib_format_ranges)
1790# if (__cplusplus > 202002L) && _GLIBCXX_HOSTED
1791# define __glibcxx_format_ranges 202207L
1792# if defined(__glibcxx_want_all) || defined(__glibcxx_want_format_ranges)
1793# define __cpp_lib_format_ranges 202207L
1794# endif
1795# endif
1796#endif /* !defined(__cpp_lib_format_ranges) */
1797#undef __glibcxx_want_format_ranges
1798
1799#if !defined(__cpp_lib_format_path)
1800# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED
1801# define __glibcxx_format_path 202506L
1802# if defined(__glibcxx_want_all) || defined(__glibcxx_want_format_path)
1803# define __cpp_lib_format_path 202506L
1804# endif
1805# endif
1806#endif /* !defined(__cpp_lib_format_path) */
1807#undef __glibcxx_want_format_path
1808
1809#if !defined(__cpp_lib_freestanding_algorithm)
1810# if (__cplusplus > 202002L)
1811# define __glibcxx_freestanding_algorithm 202311L
1812# if defined(__glibcxx_want_all) || defined(__glibcxx_want_freestanding_algorithm)
1813# define __cpp_lib_freestanding_algorithm 202311L
1814# endif
1815# endif
1816#endif /* !defined(__cpp_lib_freestanding_algorithm) */
1817#undef __glibcxx_want_freestanding_algorithm
1818
1819#if !defined(__cpp_lib_freestanding_array)
1820# if (__cplusplus > 202002L)
1821# define __glibcxx_freestanding_array 202311L
1822# if defined(__glibcxx_want_all) || defined(__glibcxx_want_freestanding_array)
1823# define __cpp_lib_freestanding_array 202311L
1824# endif
1825# endif
1826#endif /* !defined(__cpp_lib_freestanding_array) */
1827#undef __glibcxx_want_freestanding_array
1828
1829#if !defined(__cpp_lib_freestanding_cstring)
1830# if (__cplusplus > 202002L)
1831# define __glibcxx_freestanding_cstring 202311L
1832# if defined(__glibcxx_want_all) || defined(__glibcxx_want_freestanding_cstring)
1833# define __cpp_lib_freestanding_cstring 202311L
1834# endif
1835# endif
1836#endif /* !defined(__cpp_lib_freestanding_cstring) */
1837#undef __glibcxx_want_freestanding_cstring
1838
1839#if !defined(__cpp_lib_freestanding_expected)
1840# if (__cplusplus > 202002L) && (__cpp_lib_expected)
1841# define __glibcxx_freestanding_expected 202311L
1842# if defined(__glibcxx_want_all) || defined(__glibcxx_want_freestanding_expected)
1843# define __cpp_lib_freestanding_expected 202311L
1844# endif
1845# endif
1846#endif /* !defined(__cpp_lib_freestanding_expected) */
1847#undef __glibcxx_want_freestanding_expected
1848
1849#if !defined(__cpp_lib_freestanding_optional)
1850# if (__cplusplus > 202002L)
1851# define __glibcxx_freestanding_optional 202311L
1852# if defined(__glibcxx_want_all) || defined(__glibcxx_want_freestanding_optional)
1853# define __cpp_lib_freestanding_optional 202311L
1854# endif
1855# endif
1856#endif /* !defined(__cpp_lib_freestanding_optional) */
1857#undef __glibcxx_want_freestanding_optional
1858
1859#if !defined(__cpp_lib_freestanding_string_view)
1860# if (__cplusplus > 202002L)
1861# define __glibcxx_freestanding_string_view 202311L
1862# if defined(__glibcxx_want_all) || defined(__glibcxx_want_freestanding_string_view)
1863# define __cpp_lib_freestanding_string_view 202311L
1864# endif
1865# endif
1866#endif /* !defined(__cpp_lib_freestanding_string_view) */
1867#undef __glibcxx_want_freestanding_string_view
1868
1869#if !defined(__cpp_lib_freestanding_variant)
1870# if (__cplusplus > 202002L)
1871# define __glibcxx_freestanding_variant 202311L
1872# if defined(__glibcxx_want_all) || defined(__glibcxx_want_freestanding_variant)
1873# define __cpp_lib_freestanding_variant 202311L
1874# endif
1875# endif
1876#endif /* !defined(__cpp_lib_freestanding_variant) */
1877#undef __glibcxx_want_freestanding_variant
1878
1879#if !defined(__cpp_lib_invoke_r)
1880# if (__cplusplus > 202002L)
1881# define __glibcxx_invoke_r 202106L
1882# if defined(__glibcxx_want_all) || defined(__glibcxx_want_invoke_r)
1883# define __cpp_lib_invoke_r 202106L
1884# endif
1885# endif
1886#endif /* !defined(__cpp_lib_invoke_r) */
1887#undef __glibcxx_want_invoke_r
1888
1889#if !defined(__cpp_lib_associative_heterogeneous_erasure)
1890# if (__cplusplus > 202002L)
1891# define __glibcxx_associative_heterogeneous_erasure 202110L
1892# if defined(__glibcxx_want_all) || defined(__glibcxx_want_associative_heterogeneous_erasure)
1893# define __cpp_lib_associative_heterogeneous_erasure 202110L
1894# endif
1895# endif
1896#endif /* !defined(__cpp_lib_associative_heterogeneous_erasure) */
1897#undef __glibcxx_want_associative_heterogeneous_erasure
1898
1899#if !defined(__cpp_lib_associative_heterogeneous_insertion)
1900# if (__cplusplus > 202302L)
1901# define __glibcxx_associative_heterogeneous_insertion 202306L
1902# if defined(__glibcxx_want_all) || defined(__glibcxx_want_associative_heterogeneous_insertion)
1903# define __cpp_lib_associative_heterogeneous_insertion 202306L
1904# endif
1905# endif
1906#endif /* !defined(__cpp_lib_associative_heterogeneous_insertion) */
1907#undef __glibcxx_want_associative_heterogeneous_insertion
1908
1909#if !defined(__cpp_lib_is_scoped_enum)
1910# if (__cplusplus > 202002L)
1911# define __glibcxx_is_scoped_enum 202011L
1912# if defined(__glibcxx_want_all) || defined(__glibcxx_want_is_scoped_enum)
1913# define __cpp_lib_is_scoped_enum 202011L
1914# endif
1915# endif
1916#endif /* !defined(__cpp_lib_is_scoped_enum) */
1917#undef __glibcxx_want_is_scoped_enum
1918
1919#if !defined(__cpp_lib_reference_from_temporary)
1920# if (__cplusplus > 202002L) && (__has_builtin(__reference_constructs_from_temporary) && __has_builtin(__reference_converts_from_temporary))
1921# define __glibcxx_reference_from_temporary 202202L
1922# if defined(__glibcxx_want_all) || defined(__glibcxx_want_reference_from_temporary)
1923# define __cpp_lib_reference_from_temporary 202202L
1924# endif
1925# endif
1926#endif /* !defined(__cpp_lib_reference_from_temporary) */
1927#undef __glibcxx_want_reference_from_temporary
1928
1929#if !defined(__cpp_lib_containers_ranges)
1930# if (__cplusplus > 202002L) && _GLIBCXX_HOSTED
1931# define __glibcxx_containers_ranges 202202L
1932# if defined(__glibcxx_want_all) || defined(__glibcxx_want_containers_ranges)
1933# define __cpp_lib_containers_ranges 202202L
1934# endif
1935# endif
1936#endif /* !defined(__cpp_lib_containers_ranges) */
1937#undef __glibcxx_want_containers_ranges
1938
1939#if !defined(__cpp_lib_ranges_to_container)
1940# if (__cplusplus > 202002L) && _GLIBCXX_HOSTED
1941# define __glibcxx_ranges_to_container 202202L
1942# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_to_container)
1943# define __cpp_lib_ranges_to_container 202202L
1944# endif
1945# endif
1946#endif /* !defined(__cpp_lib_ranges_to_container) */
1947#undef __glibcxx_want_ranges_to_container
1948
1949#if !defined(__cpp_lib_ranges_zip)
1950# if (__cplusplus > 202002L)
1951# define __glibcxx_ranges_zip 202110L
1952# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_zip)
1953# define __cpp_lib_ranges_zip 202110L
1954# endif
1955# endif
1956#endif /* !defined(__cpp_lib_ranges_zip) */
1957#undef __glibcxx_want_ranges_zip
1958
1959#if !defined(__cpp_lib_ranges_chunk)
1960# if (__cplusplus > 202002L)
1961# define __glibcxx_ranges_chunk 202202L
1962# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_chunk)
1963# define __cpp_lib_ranges_chunk 202202L
1964# endif
1965# endif
1966#endif /* !defined(__cpp_lib_ranges_chunk) */
1967#undef __glibcxx_want_ranges_chunk
1968
1969#if !defined(__cpp_lib_ranges_slide)
1970# if (__cplusplus > 202002L)
1971# define __glibcxx_ranges_slide 202202L
1972# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_slide)
1973# define __cpp_lib_ranges_slide 202202L
1974# endif
1975# endif
1976#endif /* !defined(__cpp_lib_ranges_slide) */
1977#undef __glibcxx_want_ranges_slide
1978
1979#if !defined(__cpp_lib_ranges_chunk_by)
1980# if (__cplusplus > 202002L)
1981# define __glibcxx_ranges_chunk_by 202202L
1982# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_chunk_by)
1983# define __cpp_lib_ranges_chunk_by 202202L
1984# endif
1985# endif
1986#endif /* !defined(__cpp_lib_ranges_chunk_by) */
1987#undef __glibcxx_want_ranges_chunk_by
1988
1989#if !defined(__cpp_lib_ranges_join_with)
1990# if (__cplusplus > 202002L)
1991# define __glibcxx_ranges_join_with 202202L
1992# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_join_with)
1993# define __cpp_lib_ranges_join_with 202202L
1994# endif
1995# endif
1996#endif /* !defined(__cpp_lib_ranges_join_with) */
1997#undef __glibcxx_want_ranges_join_with
1998
1999#if !defined(__cpp_lib_ranges_repeat)
2000# if (__cplusplus > 202002L)
2001# define __glibcxx_ranges_repeat 202207L
2002# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_repeat)
2003# define __cpp_lib_ranges_repeat 202207L
2004# endif
2005# endif
2006#endif /* !defined(__cpp_lib_ranges_repeat) */
2007#undef __glibcxx_want_ranges_repeat
2008
2009#if !defined(__cpp_lib_ranges_stride)
2010# if (__cplusplus > 202002L)
2011# define __glibcxx_ranges_stride 202207L
2012# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_stride)
2013# define __cpp_lib_ranges_stride 202207L
2014# endif
2015# endif
2016#endif /* !defined(__cpp_lib_ranges_stride) */
2017#undef __glibcxx_want_ranges_stride
2018
2019#if !defined(__cpp_lib_ranges_cartesian_product)
2020# if (__cplusplus > 202002L)
2021# define __glibcxx_ranges_cartesian_product 202207L
2022# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_cartesian_product)
2023# define __cpp_lib_ranges_cartesian_product 202207L
2024# endif
2025# endif
2026#endif /* !defined(__cpp_lib_ranges_cartesian_product) */
2027#undef __glibcxx_want_ranges_cartesian_product
2028
2029#if !defined(__cpp_lib_ranges_as_rvalue)
2030# if (__cplusplus > 202002L)
2031# define __glibcxx_ranges_as_rvalue 202207L
2032# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_as_rvalue)
2033# define __cpp_lib_ranges_as_rvalue 202207L
2034# endif
2035# endif
2036#endif /* !defined(__cpp_lib_ranges_as_rvalue) */
2037#undef __glibcxx_want_ranges_as_rvalue
2038
2039#if !defined(__cpp_lib_ranges_as_const)
2040# if (__cplusplus > 202002L)
2041# define __glibcxx_ranges_as_const 202311L
2042# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_as_const)
2043# define __cpp_lib_ranges_as_const 202311L
2044# endif
2045# endif
2046#endif /* !defined(__cpp_lib_ranges_as_const) */
2047#undef __glibcxx_want_ranges_as_const
2048
2049#if !defined(__cpp_lib_ranges_enumerate)
2050# if (__cplusplus > 202002L)
2051# define __glibcxx_ranges_enumerate 202302L
2052# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_enumerate)
2053# define __cpp_lib_ranges_enumerate 202302L
2054# endif
2055# endif
2056#endif /* !defined(__cpp_lib_ranges_enumerate) */
2057#undef __glibcxx_want_ranges_enumerate
2058
2059#if !defined(__cpp_lib_ranges_fold)
2060# if (__cplusplus > 202002L)
2061# define __glibcxx_ranges_fold 202207L
2062# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_fold)
2063# define __cpp_lib_ranges_fold 202207L
2064# endif
2065# endif
2066#endif /* !defined(__cpp_lib_ranges_fold) */
2067#undef __glibcxx_want_ranges_fold
2068
2069#if !defined(__cpp_lib_ranges_contains)
2070# if (__cplusplus > 202002L)
2071# define __glibcxx_ranges_contains 202207L
2072# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_contains)
2073# define __cpp_lib_ranges_contains 202207L
2074# endif
2075# endif
2076#endif /* !defined(__cpp_lib_ranges_contains) */
2077#undef __glibcxx_want_ranges_contains
2078
2079#if !defined(__cpp_lib_ranges_iota)
2080# if (__cplusplus > 202002L)
2081# define __glibcxx_ranges_iota 202202L
2082# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_iota)
2083# define __cpp_lib_ranges_iota 202202L
2084# endif
2085# endif
2086#endif /* !defined(__cpp_lib_ranges_iota) */
2087#undef __glibcxx_want_ranges_iota
2088
2089#if !defined(__cpp_lib_ranges_find_last)
2090# if (__cplusplus > 202002L)
2091# define __glibcxx_ranges_find_last 202207L
2092# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_find_last)
2093# define __cpp_lib_ranges_find_last 202207L
2094# endif
2095# endif
2096#endif /* !defined(__cpp_lib_ranges_find_last) */
2097#undef __glibcxx_want_ranges_find_last
2098
2099#if !defined(__cpp_lib_ranges_starts_ends_with)
2100# if (__cplusplus > 202002L)
2101# define __glibcxx_ranges_starts_ends_with 202106L
2102# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_starts_ends_with)
2103# define __cpp_lib_ranges_starts_ends_with 202106L
2104# endif
2105# endif
2106#endif /* !defined(__cpp_lib_ranges_starts_ends_with) */
2107#undef __glibcxx_want_ranges_starts_ends_with
2108
2109#if !defined(__cpp_lib_ranges_indices)
2110# if (__cplusplus > 202302L)
2111# define __glibcxx_ranges_indices 202506L
2112# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_indices)
2113# define __cpp_lib_ranges_indices 202506L
2114# endif
2115# endif
2116#endif /* !defined(__cpp_lib_ranges_indices) */
2117#undef __glibcxx_want_ranges_indices
2118
2119#if !defined(__cpp_lib_constexpr_bitset)
2120# if (__cplusplus > 202002L) && _GLIBCXX_HOSTED && (__cpp_constexpr_dynamic_alloc)
2121# define __glibcxx_constexpr_bitset 202202L
2122# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_bitset)
2123# define __cpp_lib_constexpr_bitset 202202L
2124# endif
2125# endif
2126#endif /* !defined(__cpp_lib_constexpr_bitset) */
2127#undef __glibcxx_want_constexpr_bitset
2128
2129#if !defined(__cpp_lib_stdatomic_h)
2130# if (__cplusplus > 202002L)
2131# define __glibcxx_stdatomic_h 202011L
2132# if defined(__glibcxx_want_all) || defined(__glibcxx_want_stdatomic_h)
2133# define __cpp_lib_stdatomic_h 202011L
2134# endif
2135# endif
2136#endif /* !defined(__cpp_lib_stdatomic_h) */
2137#undef __glibcxx_want_stdatomic_h
2138
2139#if !defined(__cpp_lib_stdbit_h)
2140# if (__cplusplus > 202302L)
2141# define __glibcxx_stdbit_h 202603L
2142# if defined(__glibcxx_want_all) || defined(__glibcxx_want_stdbit_h)
2143# define __cpp_lib_stdbit_h 202603L
2144# endif
2145# endif
2146#endif /* !defined(__cpp_lib_stdbit_h) */
2147#undef __glibcxx_want_stdbit_h
2148
2149#if !defined(__cpp_lib_stdckdint_h)
2150# if (__cplusplus > 202302L)
2151# define __glibcxx_stdckdint_h 202603L
2152# if defined(__glibcxx_want_all) || defined(__glibcxx_want_stdckdint_h)
2153# define __cpp_lib_stdckdint_h 202603L
2154# endif
2155# endif
2156#endif /* !defined(__cpp_lib_stdckdint_h) */
2157#undef __glibcxx_want_stdckdint_h
2158
2159#if !defined(__cpp_lib_adaptor_iterator_pair_constructor)
2160# if (__cplusplus > 202002L) && _GLIBCXX_HOSTED
2161# define __glibcxx_adaptor_iterator_pair_constructor 202106L
2162# if defined(__glibcxx_want_all) || defined(__glibcxx_want_adaptor_iterator_pair_constructor)
2163# define __cpp_lib_adaptor_iterator_pair_constructor 202106L
2164# endif
2165# endif
2166#endif /* !defined(__cpp_lib_adaptor_iterator_pair_constructor) */
2167#undef __glibcxx_want_adaptor_iterator_pair_constructor
2168
2169#if !defined(__cpp_lib_flat_map)
2170# if (__cplusplus > 202002L)
2171# define __glibcxx_flat_map 202511L
2172# if defined(__glibcxx_want_all) || defined(__glibcxx_want_flat_map)
2173# define __cpp_lib_flat_map 202511L
2174# endif
2175# endif
2176#endif /* !defined(__cpp_lib_flat_map) */
2177#undef __glibcxx_want_flat_map
2178
2179#if !defined(__cpp_lib_flat_set)
2180# if (__cplusplus > 202002L)
2181# define __glibcxx_flat_set 202511L
2182# if defined(__glibcxx_want_all) || defined(__glibcxx_want_flat_set)
2183# define __cpp_lib_flat_set 202511L
2184# endif
2185# endif
2186#endif /* !defined(__cpp_lib_flat_set) */
2187#undef __glibcxx_want_flat_set
2188
2189#if !defined(__cpp_lib_common_reference)
2190# if (__cplusplus >= 202002L)
2191# define __glibcxx_common_reference 202302L
2192# if defined(__glibcxx_want_all) || defined(__glibcxx_want_common_reference)
2193# define __cpp_lib_common_reference 202302L
2194# endif
2195# endif
2196#endif /* !defined(__cpp_lib_common_reference) */
2197#undef __glibcxx_want_common_reference
2198
2199#if !defined(__cpp_lib_common_reference_wrapper)
2200# if (__cplusplus >= 202002L)
2201# define __glibcxx_common_reference_wrapper 202302L
2202# if defined(__glibcxx_want_all) || defined(__glibcxx_want_common_reference_wrapper)
2203# define __cpp_lib_common_reference_wrapper 202302L
2204# endif
2205# endif
2206#endif /* !defined(__cpp_lib_common_reference_wrapper) */
2207#undef __glibcxx_want_common_reference_wrapper
2208
2209#if !defined(__cpp_lib_formatters)
2210# if (__cplusplus > 202002L) && _GLIBCXX_HOSTED
2211# define __glibcxx_formatters 202302L
2212# if defined(__glibcxx_want_all) || defined(__glibcxx_want_formatters)
2213# define __cpp_lib_formatters 202302L
2214# endif
2215# endif
2216#endif /* !defined(__cpp_lib_formatters) */
2217#undef __glibcxx_want_formatters
2218
2219#if !defined(__cpp_lib_forward_like)
2220# if (__cplusplus > 202002L)
2221# define __glibcxx_forward_like 202207L
2222# if defined(__glibcxx_want_all) || defined(__glibcxx_want_forward_like)
2223# define __cpp_lib_forward_like 202207L
2224# endif
2225# endif
2226#endif /* !defined(__cpp_lib_forward_like) */
2227#undef __glibcxx_want_forward_like
2228
2229#if !defined(__cpp_lib_generator)
2230# if (__cplusplus > 202002L) && (__glibcxx_coroutine && __cpp_sized_deallocation)
2231# define __glibcxx_generator 202207L
2232# if defined(__glibcxx_want_all) || defined(__glibcxx_want_generator)
2233# define __cpp_lib_generator 202207L
2234# endif
2235# endif
2236#endif /* !defined(__cpp_lib_generator) */
2237#undef __glibcxx_want_generator
2238
2239#if !defined(__cpp_lib_ios_noreplace)
2240# if (__cplusplus > 202002L) && _GLIBCXX_HOSTED
2241# define __glibcxx_ios_noreplace 202207L
2242# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ios_noreplace)
2243# define __cpp_lib_ios_noreplace 202207L
2244# endif
2245# endif
2246#endif /* !defined(__cpp_lib_ios_noreplace) */
2247#undef __glibcxx_want_ios_noreplace
2248
2249#if !defined(__cpp_lib_move_only_function)
2250# if (__cplusplus > 202002L) && _GLIBCXX_HOSTED
2251# define __glibcxx_move_only_function 202110L
2252# if defined(__glibcxx_want_all) || defined(__glibcxx_want_move_only_function)
2253# define __cpp_lib_move_only_function 202110L
2254# endif
2255# endif
2256#endif /* !defined(__cpp_lib_move_only_function) */
2257#undef __glibcxx_want_move_only_function
2258
2259#if !defined(__cpp_lib_copyable_function)
2260# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED
2261# define __glibcxx_copyable_function 202306L
2262# if defined(__glibcxx_want_all) || defined(__glibcxx_want_copyable_function)
2263# define __cpp_lib_copyable_function 202306L
2264# endif
2265# endif
2266#endif /* !defined(__cpp_lib_copyable_function) */
2267#undef __glibcxx_want_copyable_function
2268
2269#if !defined(__cpp_lib_function_ref)
2270# if (__cplusplus > 202302L)
2271# define __glibcxx_function_ref 202604L
2272# if defined(__glibcxx_want_all) || defined(__glibcxx_want_function_ref)
2273# define __cpp_lib_function_ref 202604L
2274# endif
2275# endif
2276#endif /* !defined(__cpp_lib_function_ref) */
2277#undef __glibcxx_want_function_ref
2278
2279#if !defined(__cpp_lib_out_ptr)
2280# if (__cplusplus > 202002L)
2281# define __glibcxx_out_ptr 202311L
2282# if defined(__glibcxx_want_all) || defined(__glibcxx_want_out_ptr)
2283# define __cpp_lib_out_ptr 202311L
2284# endif
2285# endif
2286#endif /* !defined(__cpp_lib_out_ptr) */
2287#undef __glibcxx_want_out_ptr
2288
2289#if !defined(__cpp_lib_print)
2290# if (__cplusplus > 202002L) && _GLIBCXX_HOSTED
2291# define __glibcxx_print 202406L
2292# if defined(__glibcxx_want_all) || defined(__glibcxx_want_print)
2293# define __cpp_lib_print 202406L
2294# endif
2295# endif
2296#endif /* !defined(__cpp_lib_print) */
2297#undef __glibcxx_want_print
2298
2299#if !defined(__cpp_lib_spanstream)
2300# if (__cplusplus > 202002L) && _GLIBCXX_HOSTED && (__glibcxx_span)
2301# define __glibcxx_spanstream 202106L
2302# if defined(__glibcxx_want_all) || defined(__glibcxx_want_spanstream)
2303# define __cpp_lib_spanstream 202106L
2304# endif
2305# endif
2306#endif /* !defined(__cpp_lib_spanstream) */
2307#undef __glibcxx_want_spanstream
2308
2309#if !defined(__cpp_lib_stacktrace)
2310# if (__cplusplus > 202002L) && _GLIBCXX_HOSTED && (_GLIBCXX_HAVE_STACKTRACE)
2311# define __glibcxx_stacktrace 202011L
2312# if defined(__glibcxx_want_all) || defined(__glibcxx_want_stacktrace)
2313# define __cpp_lib_stacktrace 202011L
2314# endif
2315# endif
2316#endif /* !defined(__cpp_lib_stacktrace) */
2317#undef __glibcxx_want_stacktrace
2318
2319#if !defined(__cpp_lib_start_lifetime_as)
2320# if (__cplusplus > 202002L)
2321# define __glibcxx_start_lifetime_as 202207L
2322# if defined(__glibcxx_want_all) || defined(__glibcxx_want_start_lifetime_as)
2323# define __cpp_lib_start_lifetime_as 202207L
2324# endif
2325# endif
2326#endif /* !defined(__cpp_lib_start_lifetime_as) */
2327#undef __glibcxx_want_start_lifetime_as
2328
2329#if !defined(__cpp_lib_string_contains)
2330# if (__cplusplus > 202002L) && _GLIBCXX_HOSTED
2331# define __glibcxx_string_contains 202011L
2332# if defined(__glibcxx_want_all) || defined(__glibcxx_want_string_contains)
2333# define __cpp_lib_string_contains 202011L
2334# endif
2335# endif
2336#endif /* !defined(__cpp_lib_string_contains) */
2337#undef __glibcxx_want_string_contains
2338
2339#if !defined(__cpp_lib_string_resize_and_overwrite)
2340# if (__cplusplus > 202002L) && _GLIBCXX_HOSTED
2341# define __glibcxx_string_resize_and_overwrite 202110L
2342# if defined(__glibcxx_want_all) || defined(__glibcxx_want_string_resize_and_overwrite)
2343# define __cpp_lib_string_resize_and_overwrite 202110L
2344# endif
2345# endif
2346#endif /* !defined(__cpp_lib_string_resize_and_overwrite) */
2347#undef __glibcxx_want_string_resize_and_overwrite
2348
2349#if !defined(__cpp_lib_string_subview)
2350# if (__cplusplus > 202302L)
2351# define __glibcxx_string_subview 202506L
2352# if defined(__glibcxx_want_all) || defined(__glibcxx_want_string_subview)
2353# define __cpp_lib_string_subview 202506L
2354# endif
2355# endif
2356#endif /* !defined(__cpp_lib_string_subview) */
2357#undef __glibcxx_want_string_subview
2358
2359#if !defined(__cpp_lib_to_underlying)
2360# if (__cplusplus > 202002L)
2361# define __glibcxx_to_underlying 202102L
2362# if defined(__glibcxx_want_all) || defined(__glibcxx_want_to_underlying)
2363# define __cpp_lib_to_underlying 202102L
2364# endif
2365# endif
2366#endif /* !defined(__cpp_lib_to_underlying) */
2367#undef __glibcxx_want_to_underlying
2368
2369#if !defined(__cpp_lib_tuple_like)
2370# if (__cplusplus > 202302L) && (__cpp_explicit_this_parameter >= 202110L)
2371# define __glibcxx_tuple_like 202311L
2372# if defined(__glibcxx_want_all) || defined(__glibcxx_want_tuple_like)
2373# define __cpp_lib_tuple_like 202311L
2374# endif
2375# elif (__cplusplus > 202002L)
2376# define __glibcxx_tuple_like 202207L
2377# if defined(__glibcxx_want_all) || defined(__glibcxx_want_tuple_like)
2378# define __cpp_lib_tuple_like 202207L
2379# endif
2380# endif
2381#endif /* !defined(__cpp_lib_tuple_like) */
2382#undef __glibcxx_want_tuple_like
2383
2384#if !defined(__cpp_lib_unreachable)
2385# if (__cplusplus > 202002L)
2386# define __glibcxx_unreachable 202202L
2387# if defined(__glibcxx_want_all) || defined(__glibcxx_want_unreachable)
2388# define __cpp_lib_unreachable 202202L
2389# endif
2390# endif
2391#endif /* !defined(__cpp_lib_unreachable) */
2392#undef __glibcxx_want_unreachable
2393
2394#if !defined(__cpp_lib_observable_checkpoint)
2395# if (__cplusplus > 202302L) && (__has_builtin(__builtin_observable_checkpoint))
2396# define __glibcxx_observable_checkpoint 202506L
2397# if defined(__glibcxx_want_all) || defined(__glibcxx_want_observable_checkpoint)
2398# define __cpp_lib_observable_checkpoint 202506L
2399# endif
2400# endif
2401#endif /* !defined(__cpp_lib_observable_checkpoint) */
2402#undef __glibcxx_want_observable_checkpoint
2403
2404#if !defined(__cpp_lib_algorithm_iterator_requirements)
2405# if (__cplusplus >= 202002L)
2406# define __glibcxx_algorithm_iterator_requirements 202207L
2407# if defined(__glibcxx_want_all) || defined(__glibcxx_want_algorithm_iterator_requirements)
2408# define __cpp_lib_algorithm_iterator_requirements 202207L
2409# endif
2410# endif
2411#endif /* !defined(__cpp_lib_algorithm_iterator_requirements) */
2412#undef __glibcxx_want_algorithm_iterator_requirements
2413
2414#if !defined(__cpp_lib_algorithm_default_value_type)
2415# if (__cplusplus > 202302L)
2416# define __glibcxx_algorithm_default_value_type 202603L
2417# if defined(__glibcxx_want_all) || defined(__glibcxx_want_algorithm_default_value_type)
2418# define __cpp_lib_algorithm_default_value_type 202603L
2419# endif
2420# endif
2421#endif /* !defined(__cpp_lib_algorithm_default_value_type) */
2422#undef __glibcxx_want_algorithm_default_value_type
2423
2424#if !defined(__cpp_lib_constexpr_new)
2425# if (__cplusplus > 202302L) && (__cpp_constexpr >= 202406L)
2426# define __glibcxx_constexpr_new 202406L
2427# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_new)
2428# define __cpp_lib_constexpr_new 202406L
2429# endif
2430# endif
2431#endif /* !defined(__cpp_lib_constexpr_new) */
2432#undef __glibcxx_want_constexpr_new
2433
2434#if !defined(__cpp_lib_debugging)
2435# if (__cplusplus > 202302L)
2436# define __glibcxx_debugging 202403L
2437# if defined(__glibcxx_want_all) || defined(__glibcxx_want_debugging)
2438# define __cpp_lib_debugging 202403L
2439# endif
2440# endif
2441#endif /* !defined(__cpp_lib_debugging) */
2442#undef __glibcxx_want_debugging
2443
2444#if !defined(__cpp_lib_fstream_native_handle)
2445# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED
2446# define __glibcxx_fstream_native_handle 202306L
2447# if defined(__glibcxx_want_all) || defined(__glibcxx_want_fstream_native_handle)
2448# define __cpp_lib_fstream_native_handle 202306L
2449# endif
2450# endif
2451#endif /* !defined(__cpp_lib_fstream_native_handle) */
2452#undef __glibcxx_want_fstream_native_handle
2453
2454#if !defined(__cpp_lib_is_virtual_base_of)
2455# if (__cplusplus > 202302L) && (__has_builtin(__builtin_is_virtual_base_of))
2456# define __glibcxx_is_virtual_base_of 202406L
2457# if defined(__glibcxx_want_all) || defined(__glibcxx_want_is_virtual_base_of)
2458# define __cpp_lib_is_virtual_base_of 202406L
2459# endif
2460# endif
2461#endif /* !defined(__cpp_lib_is_virtual_base_of) */
2462#undef __glibcxx_want_is_virtual_base_of
2463
2464#if !defined(__cpp_lib_ranges_cache_latest)
2465# if (__cplusplus > 202302L)
2466# define __glibcxx_ranges_cache_latest 202411L
2467# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_cache_latest)
2468# define __cpp_lib_ranges_cache_latest 202411L
2469# endif
2470# endif
2471#endif /* !defined(__cpp_lib_ranges_cache_latest) */
2472#undef __glibcxx_want_ranges_cache_latest
2473
2474#if !defined(__cpp_lib_ranges_concat)
2475# if (__cplusplus > 202302L) && (__cpp_pack_indexing)
2476# define __glibcxx_ranges_concat 202403L
2477# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_concat)
2478# define __cpp_lib_ranges_concat 202403L
2479# endif
2480# endif
2481#endif /* !defined(__cpp_lib_ranges_concat) */
2482#undef __glibcxx_want_ranges_concat
2483
2484#if !defined(__cpp_lib_ratio)
2485# if (__cplusplus > 202302L)
2486# define __glibcxx_ratio 202306L
2487# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ratio)
2488# define __cpp_lib_ratio 202306L
2489# endif
2490# endif
2491#endif /* !defined(__cpp_lib_ratio) */
2492#undef __glibcxx_want_ratio
2493
2494#if !defined(__cpp_lib_reference_wrapper)
2495# if (__cplusplus > 202302L)
2496# define __glibcxx_reference_wrapper 202403L
2497# if defined(__glibcxx_want_all) || defined(__glibcxx_want_reference_wrapper)
2498# define __cpp_lib_reference_wrapper 202403L
2499# endif
2500# endif
2501#endif /* !defined(__cpp_lib_reference_wrapper) */
2502#undef __glibcxx_want_reference_wrapper
2503
2504#if !defined(__cpp_lib_saturation_arithmetic)
2505# if (__cplusplus > 202302L)
2506# define __glibcxx_saturation_arithmetic 202603L
2507# if defined(__glibcxx_want_all) || defined(__glibcxx_want_saturation_arithmetic)
2508# define __cpp_lib_saturation_arithmetic 202603L
2509# endif
2510# endif
2511#endif /* !defined(__cpp_lib_saturation_arithmetic) */
2512#undef __glibcxx_want_saturation_arithmetic
2513
2514#if !defined(__cpp_lib_text_encoding)
2515# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED && (_GLIBCXX_USE_NL_LANGINFO_L)
2516# define __glibcxx_text_encoding 202306L
2517# if defined(__glibcxx_want_all) || defined(__glibcxx_want_text_encoding)
2518# define __cpp_lib_text_encoding 202306L
2519# endif
2520# endif
2521#endif /* !defined(__cpp_lib_text_encoding) */
2522#undef __glibcxx_want_text_encoding
2523
2524#if !defined(__cpp_lib_ranges_filter)
2525# if (__cplusplus >= 202002L)
2526# define __glibcxx_ranges_filter 202603L
2527# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_filter)
2528# define __cpp_lib_ranges_filter 202603L
2529# endif
2530# endif
2531#endif /* !defined(__cpp_lib_ranges_filter) */
2532#undef __glibcxx_want_ranges_filter
2533
2534#if !defined(__cpp_lib_ranges_as_input)
2535# if (__cplusplus > 202302L)
2536# define __glibcxx_ranges_as_input 202502L
2537# if defined(__glibcxx_want_all) || defined(__glibcxx_want_ranges_as_input)
2538# define __cpp_lib_ranges_as_input 202502L
2539# endif
2540# endif
2541#endif /* !defined(__cpp_lib_ranges_as_input) */
2542#undef __glibcxx_want_ranges_as_input
2543
2544#if !defined(__cpp_lib_to_string)
2545# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED && (__glibcxx_to_chars)
2546# define __glibcxx_to_string 202306L
2547# if defined(__glibcxx_want_all) || defined(__glibcxx_want_to_string)
2548# define __cpp_lib_to_string 202306L
2549# endif
2550# endif
2551#endif /* !defined(__cpp_lib_to_string) */
2552#undef __glibcxx_want_to_string
2553
2554#if !defined(__cpp_lib_modules)
2555# if (__cplusplus >= 202002L) && (__cpp_modules)
2556# define __glibcxx_modules 202207L
2557# if defined(__glibcxx_want_all) || defined(__glibcxx_want_modules)
2558# define __cpp_lib_modules 202207L
2559# endif
2560# endif
2561#endif /* !defined(__cpp_lib_modules) */
2562#undef __glibcxx_want_modules
2563
2564#if !defined(__cpp_lib_start_lifetime)
2565# if (__cplusplus > 202302L) && (__has_builtin(__builtin_start_lifetime))
2566# define __glibcxx_start_lifetime 202603L
2567# if defined(__glibcxx_want_all) || defined(__glibcxx_want_start_lifetime)
2568# define __cpp_lib_start_lifetime 202603L
2569# endif
2570# endif
2571#endif /* !defined(__cpp_lib_start_lifetime) */
2572#undef __glibcxx_want_start_lifetime
2573
2574#if !defined(__cpp_lib_inplace_vector)
2575# if (__cplusplus > 202302L)
2576# define __glibcxx_inplace_vector 202603L
2577# if defined(__glibcxx_want_all) || defined(__glibcxx_want_inplace_vector)
2578# define __cpp_lib_inplace_vector 202603L
2579# endif
2580# endif
2581#endif /* !defined(__cpp_lib_inplace_vector) */
2582#undef __glibcxx_want_inplace_vector
2583
2584#if !defined(__cpp_lib_constexpr_inplace_vector)
2585# if (__cplusplus > 202302L) && (__glibcxx_start_lifetime)
2586# define __glibcxx_constexpr_inplace_vector 202502L
2587# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_inplace_vector)
2588# define __cpp_lib_constexpr_inplace_vector 202502L
2589# endif
2590# endif
2591#endif /* !defined(__cpp_lib_constexpr_inplace_vector) */
2592#undef __glibcxx_want_constexpr_inplace_vector
2593
2594#if !defined(__cpp_lib_indirect)
2595# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED
2596# define __glibcxx_indirect 202502L
2597# if defined(__glibcxx_want_all) || defined(__glibcxx_want_indirect)
2598# define __cpp_lib_indirect 202502L
2599# endif
2600# endif
2601#endif /* !defined(__cpp_lib_indirect) */
2602#undef __glibcxx_want_indirect
2603
2604#if !defined(__cpp_lib_polymorphic)
2605# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED
2606# define __glibcxx_polymorphic 202502L
2607# if defined(__glibcxx_want_all) || defined(__glibcxx_want_polymorphic)
2608# define __cpp_lib_polymorphic 202502L
2609# endif
2610# endif
2611#endif /* !defined(__cpp_lib_polymorphic) */
2612#undef __glibcxx_want_polymorphic
2613
2614#if !defined(__cpp_lib_smart_ptr_owner_equality)
2615# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED
2616# define __glibcxx_smart_ptr_owner_equality 202306L
2617# if defined(__glibcxx_want_all) || defined(__glibcxx_want_smart_ptr_owner_equality)
2618# define __cpp_lib_smart_ptr_owner_equality 202306L
2619# endif
2620# endif
2621#endif /* !defined(__cpp_lib_smart_ptr_owner_equality) */
2622#undef __glibcxx_want_smart_ptr_owner_equality
2623
2624#if !defined(__cpp_lib_sstream_from_string_view)
2625# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED
2626# define __glibcxx_sstream_from_string_view 202306L
2627# if defined(__glibcxx_want_all) || defined(__glibcxx_want_sstream_from_string_view)
2628# define __cpp_lib_sstream_from_string_view 202306L
2629# endif
2630# endif
2631#endif /* !defined(__cpp_lib_sstream_from_string_view) */
2632#undef __glibcxx_want_sstream_from_string_view
2633
2634#if !defined(__cpp_lib_type_order)
2635# if (__cplusplus > 202302L) && (__has_builtin(__builtin_type_order) && __cpp_lib_three_way_comparison >= 201907L)
2636# define __glibcxx_type_order 202506L
2637# if defined(__glibcxx_want_all) || defined(__glibcxx_want_type_order)
2638# define __cpp_lib_type_order 202506L
2639# endif
2640# endif
2641#endif /* !defined(__cpp_lib_type_order) */
2642#undef __glibcxx_want_type_order
2643
2644#if !defined(__cpp_lib_exception_ptr_cast)
2645# if (__cplusplus > 202302L)
2646# define __glibcxx_exception_ptr_cast 202603L
2647# if defined(__glibcxx_want_all) || defined(__glibcxx_want_exception_ptr_cast)
2648# define __cpp_lib_exception_ptr_cast 202603L
2649# endif
2650# endif
2651#endif /* !defined(__cpp_lib_exception_ptr_cast) */
2652#undef __glibcxx_want_exception_ptr_cast
2653
2654#if !defined(__cpp_lib_bitset)
2655# if (__cplusplus > 202302L)
2656# define __glibcxx_bitset 202306L
2657# if defined(__glibcxx_want_all) || defined(__glibcxx_want_bitset)
2658# define __cpp_lib_bitset 202306L
2659# endif
2660# endif
2661#endif /* !defined(__cpp_lib_bitset) */
2662#undef __glibcxx_want_bitset
2663
2664#if !defined(__cpp_lib_philox_engine)
2665# if (__cplusplus > 202302L)
2666# define __glibcxx_philox_engine 202406L
2667# if defined(__glibcxx_want_all) || defined(__glibcxx_want_philox_engine)
2668# define __cpp_lib_philox_engine 202406L
2669# endif
2670# endif
2671#endif /* !defined(__cpp_lib_philox_engine) */
2672#undef __glibcxx_want_philox_engine
2673
2674#if !defined(__cpp_lib_reflection)
2675# if (__cplusplus > 202302L) && _GLIBCXX_USE_CXX11_ABI && (__cpp_impl_reflection >= 202603L)
2676# define __glibcxx_reflection 202603L
2677# if defined(__glibcxx_want_all) || defined(__glibcxx_want_reflection)
2678# define __cpp_lib_reflection 202603L
2679# endif
2680# endif
2681#endif /* !defined(__cpp_lib_reflection) */
2682#undef __glibcxx_want_reflection
2683
2684#if !defined(__cpp_lib_define_static)
2685# if (__cplusplus > 202302L) && _GLIBCXX_USE_CXX11_ABI && (__cpp_impl_reflection >= 202506L)
2686# define __glibcxx_define_static 202506L
2687# if defined(__glibcxx_want_all) || defined(__glibcxx_want_define_static)
2688# define __cpp_lib_define_static 202506L
2689# endif
2690# endif
2691#endif /* !defined(__cpp_lib_define_static) */
2692#undef __glibcxx_want_define_static
2693
2694#if !defined(__cpp_lib_is_implicit_lifetime)
2695# if (__cplusplus > 202002L) && (__has_builtin(__builtin_is_implicit_lifetime))
2696# define __glibcxx_is_implicit_lifetime 202302L
2697# if defined(__glibcxx_want_all) || defined(__glibcxx_want_is_implicit_lifetime)
2698# define __cpp_lib_is_implicit_lifetime 202302L
2699# endif
2700# endif
2701#endif /* !defined(__cpp_lib_is_implicit_lifetime) */
2702#undef __glibcxx_want_is_implicit_lifetime
2703
2704#if !defined(__cpp_lib_contracts)
2705# if (__cplusplus > 202302L) && (__cpp_contracts >= 202502L)
2706# define __glibcxx_contracts 202502L
2707# if defined(__glibcxx_want_all) || defined(__glibcxx_want_contracts)
2708# define __cpp_lib_contracts 202502L
2709# endif
2710# endif
2711#endif /* !defined(__cpp_lib_contracts) */
2712#undef __glibcxx_want_contracts
2713
2714#if !defined(__cpp_lib_replaceable_contract_violation_handler)
2715# if (__cplusplus > 202302L) && (__cpp_contracts >= 202502L && __ELF__)
2716# define __glibcxx_replaceable_contract_violation_handler 202603L
2717# if defined(__glibcxx_want_all) || defined(__glibcxx_want_replaceable_contract_violation_handler)
2718# define __cpp_lib_replaceable_contract_violation_handler 202603L
2719# endif
2720# elif (__cplusplus > 202302L) && (__cpp_contracts >= 202502L)
2721# define __glibcxx_replaceable_contract_violation_handler 0L
2722# if defined(__glibcxx_want_all) || defined(__glibcxx_want_replaceable_contract_violation_handler)
2723# define __cpp_lib_replaceable_contract_violation_handler 0L
2724# endif
2725# endif
2726#endif /* !defined(__cpp_lib_replaceable_contract_violation_handler) */
2727#undef __glibcxx_want_replaceable_contract_violation_handler
2728
2729#if !defined(__cpp_lib_simd)
2730# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED && (__cpp_structured_bindings >= 202411L && __cpp_expansion_statements >= 202411L && __SSE2__)
2731# define __glibcxx_simd 202506L
2732# if defined(__glibcxx_want_all) || defined(__glibcxx_want_simd)
2733# endif
2734# endif
2735#endif /* !defined(__cpp_lib_simd) */
2736#undef __glibcxx_want_simd
2737
2738#if !defined(__cpp_lib_simd_complex)
2739# if (__cplusplus > 202302L) && _GLIBCXX_HOSTED && (defined __glibcxx_simd)
2740# define __glibcxx_simd_complex 202502L
2741# if defined(__glibcxx_want_all) || defined(__glibcxx_want_simd_complex)
2742# endif
2743# endif
2744#endif /* !defined(__cpp_lib_simd_complex) */
2745#undef __glibcxx_want_simd_complex
2746
2747#if !defined(__cpp_lib_is_structural)
2748# if (__cplusplus > 202302L) && (__has_builtin(__builtin_is_structural))
2749# define __glibcxx_is_structural 202603L
2750# if defined(__glibcxx_want_all) || defined(__glibcxx_want_is_structural)
2751# define __cpp_lib_is_structural 202603L
2752# endif
2753# endif
2754#endif /* !defined(__cpp_lib_is_structural) */
2755#undef __glibcxx_want_is_structural
2756
2757#if !defined(__cpp_lib_initializer_list)
2758# if (__cplusplus > 202302L)
2759# define __glibcxx_initializer_list 202511L
2760# if defined(__glibcxx_want_all) || defined(__glibcxx_want_initializer_list)
2761# define __cpp_lib_initializer_list 202511L
2762# endif
2763# endif
2764#endif /* !defined(__cpp_lib_initializer_list) */
2765#undef __glibcxx_want_initializer_list
2766
2767#if !defined(__cpp_lib_valarray)
2768# if (__cplusplus > 202302L)
2769# define __glibcxx_valarray 202511L
2770# if defined(__glibcxx_want_all) || defined(__glibcxx_want_valarray)
2771# define __cpp_lib_valarray 202511L
2772# endif
2773# endif
2774#endif /* !defined(__cpp_lib_valarray) */
2775#undef __glibcxx_want_valarray
2776
2777#if !defined(__cpp_lib_within_lifetime)
2778# if (__cplusplus > 202302L) && (__has_builtin(__builtin_is_within_lifetime))
2779# define __glibcxx_within_lifetime 202306L
2780# if defined(__glibcxx_want_all) || defined(__glibcxx_want_within_lifetime)
2781# define __cpp_lib_within_lifetime 202306L
2782# endif
2783# endif
2784#endif /* !defined(__cpp_lib_within_lifetime) */
2785#undef __glibcxx_want_within_lifetime
2786
2787#if !defined(__cpp_lib_hardened_array)
2788# if (__cplusplus >= 201103L) && (defined(_GLIBCXX_ASSERTIONS))
2789# define __glibcxx_hardened_array 202502L
2790# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_array)
2791# define __cpp_lib_hardened_array 202502L
2792# endif
2793# endif
2794#endif /* !defined(__cpp_lib_hardened_array) */
2795#undef __glibcxx_want_hardened_array
2796
2797#if !defined(__cpp_lib_hardened_basic_stacktrace)
2798# if (__cplusplus > 202002L) && _GLIBCXX_HOSTED && (defined(__glibcxx_stacktrace) && defined(_GLIBCXX_ASSERTIONS))
2799# define __glibcxx_hardened_basic_stacktrace 202502L
2800# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_basic_stacktrace)
2801# define __cpp_lib_hardened_basic_stacktrace 202502L
2802# endif
2803# endif
2804#endif /* !defined(__cpp_lib_hardened_basic_stacktrace) */
2805#undef __glibcxx_want_hardened_basic_stacktrace
2806
2807#if !defined(__cpp_lib_hardened_basic_string)
2808# if (defined(_GLIBCXX_ASSERTIONS))
2809# define __glibcxx_hardened_basic_string 202502L
2810# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_basic_string)
2811# define __cpp_lib_hardened_basic_string 202502L
2812# endif
2813# endif
2814#endif /* !defined(__cpp_lib_hardened_basic_string) */
2815#undef __glibcxx_want_hardened_basic_string
2816
2817#if !defined(__cpp_lib_hardened_basic_string_view)
2818# if (defined(__glibcxx_string_view) && defined(_GLIBCXX_ASSERTIONS))
2819# define __glibcxx_hardened_basic_string_view 202502L
2820# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_basic_string_view)
2821# define __cpp_lib_hardened_basic_string_view 202502L
2822# endif
2823# endif
2824#endif /* !defined(__cpp_lib_hardened_basic_string_view) */
2825#undef __glibcxx_want_hardened_basic_string_view
2826
2827#if !defined(__cpp_lib_hardened_bitset)
2828# if (defined(_GLIBCXX_ASSERTIONS))
2829# define __glibcxx_hardened_bitset 202502L
2830# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_bitset)
2831# define __cpp_lib_hardened_bitset 202502L
2832# endif
2833# endif
2834#endif /* !defined(__cpp_lib_hardened_bitset) */
2835#undef __glibcxx_want_hardened_bitset
2836
2837#if !defined(__cpp_lib_hardened_common_iterator)
2838# if (defined(__glibcxx_ranges) && defined(_GLIBCXX_ASSERTIONS))
2839# define __glibcxx_hardened_common_iterator 202502L
2840# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_common_iterator)
2841# define __cpp_lib_hardened_common_iterator 202502L
2842# endif
2843# endif
2844#endif /* !defined(__cpp_lib_hardened_common_iterator) */
2845#undef __glibcxx_want_hardened_common_iterator
2846
2847#if !defined(__cpp_lib_hardened_counted_iterator)
2848# if (defined(__glibcxx_ranges) && defined(_GLIBCXX_ASSERTIONS))
2849# define __glibcxx_hardened_counted_iterator 202502L
2850# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_counted_iterator)
2851# define __cpp_lib_hardened_counted_iterator 202502L
2852# endif
2853# endif
2854#endif /* !defined(__cpp_lib_hardened_counted_iterator) */
2855#undef __glibcxx_want_hardened_counted_iterator
2856
2857#if !defined(__cpp_lib_hardened_deque)
2858# if (defined(_GLIBCXX_ASSERTIONS))
2859# define __glibcxx_hardened_deque 202502L
2860# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_deque)
2861# define __cpp_lib_hardened_deque 202502L
2862# endif
2863# endif
2864#endif /* !defined(__cpp_lib_hardened_deque) */
2865#undef __glibcxx_want_hardened_deque
2866
2867#if !defined(__cpp_lib_hardened_expected)
2868# if (defined(__glibcxx_expected) && defined(_GLIBCXX_ASSERTIONS))
2869# define __glibcxx_hardened_expected 202502L
2870# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_expected)
2871# define __cpp_lib_hardened_expected 202502L
2872# endif
2873# endif
2874#endif /* !defined(__cpp_lib_hardened_expected) */
2875#undef __glibcxx_want_hardened_expected
2876
2877#if !defined(__cpp_lib_hardened_forward_list)
2878# if (__cplusplus >= 201103L) && (defined(_GLIBCXX_ASSERTIONS))
2879# define __glibcxx_hardened_forward_list 202502L
2880# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_forward_list)
2881# define __cpp_lib_hardened_forward_list 202502L
2882# endif
2883# endif
2884#endif /* !defined(__cpp_lib_hardened_forward_list) */
2885#undef __glibcxx_want_hardened_forward_list
2886
2887#if !defined(__cpp_lib_hardened_inplace_vector)
2888# if (defined(__glibcxx_inplace_vector) && defined(_GLIBCXX_ASSERTIONS))
2889# define __glibcxx_hardened_inplace_vector 202502L
2890# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_inplace_vector)
2891# define __cpp_lib_hardened_inplace_vector 202502L
2892# endif
2893# endif
2894#endif /* !defined(__cpp_lib_hardened_inplace_vector) */
2895#undef __glibcxx_want_hardened_inplace_vector
2896
2897#if !defined(__cpp_lib_hardened_list)
2898# if (defined(_GLIBCXX_ASSERTIONS))
2899# define __glibcxx_hardened_list 202502L
2900# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_list)
2901# define __cpp_lib_hardened_list 202502L
2902# endif
2903# endif
2904#endif /* !defined(__cpp_lib_hardened_list) */
2905#undef __glibcxx_want_hardened_list
2906
2907#if !defined(__cpp_lib_hardened_mdspan)
2908# if (defined(__glibcxx_mdspan) && defined(_GLIBCXX_ASSERTIONS))
2909# define __glibcxx_hardened_mdspan 202502L
2910# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_mdspan)
2911# define __cpp_lib_hardened_mdspan 202502L
2912# endif
2913# endif
2914#endif /* !defined(__cpp_lib_hardened_mdspan) */
2915#undef __glibcxx_want_hardened_mdspan
2916
2917#if !defined(__cpp_lib_hardened_optional)
2918# if (defined(__glibcxx_optional) && defined(_GLIBCXX_ASSERTIONS))
2919# define __glibcxx_hardened_optional 202502L
2920# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_optional)
2921# define __cpp_lib_hardened_optional 202502L
2922# endif
2923# endif
2924#endif /* !defined(__cpp_lib_hardened_optional) */
2925#undef __glibcxx_want_hardened_optional
2926
2927#if !defined(__cpp_lib_hardened_shared_ptr_array)
2928# if (defined(__glibcxx_shared_ptr_arrays) && defined(_GLIBCXX_ASSERTIONS))
2929# define __glibcxx_hardened_shared_ptr_array 202502L
2930# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_shared_ptr_array)
2931# define __cpp_lib_hardened_shared_ptr_array 202502L
2932# endif
2933# endif
2934#endif /* !defined(__cpp_lib_hardened_shared_ptr_array) */
2935#undef __glibcxx_want_hardened_shared_ptr_array
2936
2937#if !defined(__cpp_lib_hardened_span)
2938# if (defined(__glibcxx_span) && defined(_GLIBCXX_ASSERTIONS))
2939# define __glibcxx_hardened_span 202502L
2940# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_span)
2941# define __cpp_lib_hardened_span 202502L
2942# endif
2943# endif
2944#endif /* !defined(__cpp_lib_hardened_span) */
2945#undef __glibcxx_want_hardened_span
2946
2947#if !defined(__cpp_lib_hardened_valarray)
2948# if (defined(_GLIBCXX_ASSERTIONS))
2949# define __glibcxx_hardened_valarray 202502L
2950# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_valarray)
2951# define __cpp_lib_hardened_valarray 202502L
2952# endif
2953# endif
2954#endif /* !defined(__cpp_lib_hardened_valarray) */
2955#undef __glibcxx_want_hardened_valarray
2956
2957#if !defined(__cpp_lib_hardened_vector)
2958# if (defined(_GLIBCXX_ASSERTIONS))
2959# define __glibcxx_hardened_vector 202502L
2960# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_vector)
2961# define __cpp_lib_hardened_vector 202502L
2962# endif
2963# endif
2964#endif /* !defined(__cpp_lib_hardened_vector) */
2965#undef __glibcxx_want_hardened_vector
2966
2967#if !defined(__cpp_lib_hardened_view_interface)
2968# if (defined(__glibcxx_ranges) && defined(_GLIBCXX_ASSERTIONS))
2969# define __glibcxx_hardened_view_interface 202502L
2970# if defined(__glibcxx_want_all) || defined(__glibcxx_want_hardened_view_interface)
2971# define __cpp_lib_hardened_view_interface 202502L
2972# endif
2973# endif
2974#endif /* !defined(__cpp_lib_hardened_view_interface) */
2975#undef __glibcxx_want_hardened_view_interface
2976
2977#undef __glibcxx_want_all