@@ -247,7 +247,7 @@ _LIBCPP_PUSH_MACROS
247
247
_LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD
248
248
_LIBCPP_BEGIN_EXPLICIT_ABI_ANNOTATIONS
249
249
250
- class _LIBCPP_EXPORTED_FROM_ABI _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS bad_optional_access : public exception {
250
+ class _LIBCPP_EXPORTED_FROM_ABI bad_optional_access : public exception {
251
251
public:
252
252
_LIBCPP_HIDE_FROM_ABI bad_optional_access () _NOEXCEPT = default;
253
253
_LIBCPP_HIDE_FROM_ABI bad_optional_access (const bad_optional_access&) _NOEXCEPT = default;
@@ -264,8 +264,7 @@ _LIBCPP_END_UNVERSIONED_NAMESPACE_STD
264
264
265
265
_LIBCPP_BEGIN_NAMESPACE_STD
266
266
267
- [[noreturn]] inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS void
268
- __throw_bad_optional_access () {
267
+ [[noreturn]] inline _LIBCPP_HIDE_FROM_ABI void __throw_bad_optional_access () {
269
268
# if _LIBCPP_HAS_EXCEPTIONS
270
269
throw bad_optional_access ();
271
270
# else
@@ -828,25 +827,25 @@ public:
828
827
using __base::__get;
829
828
using __base::has_value;
830
829
831
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr value_type const & value () const & {
830
+ _LIBCPP_HIDE_FROM_ABI constexpr value_type const & value () const & {
832
831
if (!this ->has_value ())
833
832
std::__throw_bad_optional_access ();
834
833
return this ->__get ();
835
834
}
836
835
837
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr value_type& value () & {
836
+ _LIBCPP_HIDE_FROM_ABI constexpr value_type& value () & {
838
837
if (!this ->has_value ())
839
838
std::__throw_bad_optional_access ();
840
839
return this ->__get ();
841
840
}
842
841
843
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr value_type&& value() && {
842
+ _LIBCPP_HIDE_FROM_ABI constexpr value_type&& value() && {
844
843
if (!this ->has_value ())
845
844
std::__throw_bad_optional_access ();
846
845
return std::move (this ->__get ());
847
846
}
848
847
849
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr value_type const && value() const && {
848
+ _LIBCPP_HIDE_FROM_ABI constexpr value_type const && value() const && {
850
849
if (!this ->has_value ())
851
850
std::__throw_bad_optional_access ();
852
851
return std::move (this ->__get ());
@@ -868,7 +867,7 @@ public:
868
867
869
868
# if _LIBCPP_STD_VER >= 23
870
869
template <class _Func >
871
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto and_then (_Func&& __f) & {
870
+ _LIBCPP_HIDE_FROM_ABI constexpr auto and_then (_Func&& __f) & {
872
871
using _Up = invoke_result_t <_Func, value_type&>;
873
872
static_assert (__is_std_optional<remove_cvref_t <_Up>>::value,
874
873
" Result of f(value()) must be a specialization of std::optional" );
@@ -878,7 +877,7 @@ public:
878
877
}
879
878
880
879
template <class _Func >
881
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto and_then (_Func&& __f) const & {
880
+ _LIBCPP_HIDE_FROM_ABI constexpr auto and_then (_Func&& __f) const & {
882
881
using _Up = invoke_result_t <_Func, const value_type&>;
883
882
static_assert (__is_std_optional<remove_cvref_t <_Up>>::value,
884
883
" Result of f(value()) must be a specialization of std::optional" );
@@ -888,7 +887,7 @@ public:
888
887
}
889
888
890
889
template <class _Func >
891
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto and_then (_Func&& __f) && {
890
+ _LIBCPP_HIDE_FROM_ABI constexpr auto and_then (_Func&& __f) && {
892
891
using _Up = invoke_result_t <_Func, value_type&&>;
893
892
static_assert (__is_std_optional<remove_cvref_t <_Up>>::value,
894
893
" Result of f(std::move(value())) must be a specialization of std::optional" );
@@ -908,7 +907,7 @@ public:
908
907
}
909
908
910
909
template <class _Func >
911
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto transform (_Func&& __f) & {
910
+ _LIBCPP_HIDE_FROM_ABI constexpr auto transform (_Func&& __f) & {
912
911
using _Up = remove_cv_t <invoke_result_t <_Func, value_type&>>;
913
912
static_assert (!is_array_v<_Up>, " Result of f(value()) should not be an Array" );
914
913
static_assert (!is_same_v<_Up, in_place_t >, " Result of f(value()) should not be std::in_place_t" );
@@ -920,7 +919,7 @@ public:
920
919
}
921
920
922
921
template <class _Func >
923
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto transform (_Func&& __f) const & {
922
+ _LIBCPP_HIDE_FROM_ABI constexpr auto transform (_Func&& __f) const & {
924
923
using _Up = remove_cv_t <invoke_result_t <_Func, const value_type&>>;
925
924
static_assert (!is_array_v<_Up>, " Result of f(value()) should not be an Array" );
926
925
static_assert (!is_same_v<_Up, in_place_t >, " Result of f(value()) should not be std::in_place_t" );
@@ -932,7 +931,7 @@ public:
932
931
}
933
932
934
933
template <class _Func >
935
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto transform (_Func&& __f) && {
934
+ _LIBCPP_HIDE_FROM_ABI constexpr auto transform (_Func&& __f) && {
936
935
using _Up = remove_cv_t <invoke_result_t <_Func, value_type&&>>;
937
936
static_assert (!is_array_v<_Up>, " Result of f(std::move(value())) should not be an Array" );
938
937
static_assert (!is_same_v<_Up, in_place_t >, " Result of f(std::move(value())) should not be std::in_place_t" );
@@ -944,7 +943,7 @@ public:
944
943
}
945
944
946
945
template <class _Func >
947
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto transform (_Func&& __f) const && {
946
+ _LIBCPP_HIDE_FROM_ABI constexpr auto transform (_Func&& __f) const && {
948
947
using _Up = remove_cvref_t <invoke_result_t <_Func, const value_type&&>>;
949
948
static_assert (!is_array_v<_Up>, " Result of f(std::move(value())) should not be an Array" );
950
949
static_assert (!is_same_v<_Up, in_place_t >, " Result of f(std::move(value())) should not be std::in_place_t" );
0 commit comments