Skip to content

Commit 6af203b

Browse files
committed
Allow transitive include of <optional> in affected headers
1 parent 79f64a6 commit 6af203b

File tree

15 files changed

+15
-0
lines changed

15 files changed

+15
-0
lines changed

libcxx/include/algorithm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,6 +2057,7 @@ template <class BidirectionalIterator, class Compare>
20572057
# include <cstring>
20582058
# include <iterator>
20592059
# include <memory>
2060+
# include <optional>
20602061
# include <stdexcept>
20612062
# include <type_traits>
20622063
# include <utility>

libcxx/include/array

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ _LIBCPP_POP_MACROS
566566
# include <cstdlib>
567567
# include <iterator>
568568
# include <new>
569+
# include <optional>
569570
# include <type_traits>
570571
# include <utility>
571572
# endif

libcxx/include/bitset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,7 @@ _LIBCPP_POP_MACROS
974974
# if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
975975
# include <concepts>
976976
# include <cstdlib>
977+
# include <optional>
977978
# include <type_traits>
978979
# endif
979980
#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)

libcxx/include/codecvt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ _LIBCPP_END_NAMESPACE_STD
597597
# include <limits>
598598
# include <mutex>
599599
# include <new>
600+
# include <optional>
600601
# include <stdexcept>
601602
# include <type_traits>
602603
# include <typeinfo>

libcxx/include/condition_variable

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ _LIBCPP_POP_MACROS
363363
# include <initializer_list>
364364
# include <iosfwd>
365365
# include <new>
366+
# include <optional>
366367
# include <stdexcept>
367368
# include <system_error>
368369
# include <type_traits>

libcxx/include/experimental/iterator

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ _LIBCPP_POP_MACROS
127127
# if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
128128
# include <cstddef>
129129
# include <iosfwd>
130+
# include <optional>
130131
# include <type_traits>
131132
# endif
132133
#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)

libcxx/include/ios

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,7 @@ _LIBCPP_POP_MACROS
887887
# include <limits>
888888
# include <mutex>
889889
# include <new>
890+
# include <optional>
890891
# include <stdexcept>
891892
# include <system_error>
892893
# include <type_traits>

libcxx/include/locale

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3689,6 +3689,7 @@ _LIBCPP_POP_MACROS
36893689
# include <cstdarg>
36903690
# include <iterator>
36913691
# include <mutex>
3692+
# include <optional>
36923693
# include <stdexcept>
36933694
# include <type_traits>
36943695
# include <typeinfo>

libcxx/include/mutex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ _LIBCPP_POP_MACROS
508508
# include <initializer_list>
509509
# include <iosfwd>
510510
# include <new>
511+
# include <optional>
511512
# include <stdexcept>
512513
# include <system_error>
513514
# include <type_traits>

libcxx/include/shared_mutex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ _LIBCPP_POP_MACROS
461461
# endif // _LIBCPP_HAS_THREADS
462462

463463
# if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
464+
# include <optional>
464465
# include <system_error>
465466
# endif
466467
#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)

libcxx/include/streambuf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ _LIBCPP_POP_MACROS
386386

387387
# if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
388388
# include <cstdint>
389+
# include <optional>
389390
# endif
390391
#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
391392

libcxx/include/string

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4101,6 +4101,7 @@ _LIBCPP_POP_MACROS
41014101
# include <cstdlib>
41024102
# include <iterator>
41034103
# include <new>
4104+
# include <optional>
41044105
# include <type_traits>
41054106
# include <typeinfo>
41064107
# include <utility>

libcxx/include/string_view

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,7 @@ _LIBCPP_POP_MACROS
948948
# include <concepts>
949949
# include <cstdlib>
950950
# include <iterator>
951+
# include <optional>
951952
# include <type_traits>
952953
# endif
953954
#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)

libcxx/include/system_error

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ template <> struct hash<std::error_condition>;
168168
# include <cstdint>
169169
# include <cstring>
170170
# include <limits>
171+
# include <optional>
171172
# include <type_traits>
172173
# endif
173174
#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)

libcxx/include/vector

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ template<class T, class charT> requires is-vector-bool-reference<T> // Since C++
362362
# if _LIBCPP_HAS_LOCALIZATION
363363
# include <locale>
364364
# endif
365+
# include <optional>
365366
# include <string>
366367
# include <string_view>
367368
# include <tuple>

0 commit comments

Comments
 (0)