@@ -247,7 +247,7 @@ _LIBCPP_PUSH_MACROS
247247namespace std // purposefully not using versioning namespace
248248{
249249
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 {
251251public:
252252 _LIBCPP_HIDE_FROM_ABI bad_optional_access () _NOEXCEPT = default;
253253 _LIBCPP_HIDE_FROM_ABI bad_optional_access (const bad_optional_access&) _NOEXCEPT = default;
@@ -263,8 +263,7 @@ public:
263263
264264_LIBCPP_BEGIN_NAMESPACE_STD
265265
266- [[noreturn]] inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS void
267- __throw_bad_optional_access () {
266+ [[noreturn]] inline _LIBCPP_HIDE_FROM_ABI void __throw_bad_optional_access () {
268267# if _LIBCPP_HAS_EXCEPTIONS
269268 throw bad_optional_access ();
270269# else
@@ -827,25 +826,25 @@ public:
827826 using __base::__get;
828827 using __base::has_value;
829828
830- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr value_type const & value () const & {
829+ _LIBCPP_HIDE_FROM_ABI constexpr value_type const & value () const & {
831830 if (!this ->has_value ())
832831 std::__throw_bad_optional_access ();
833832 return this ->__get ();
834833 }
835834
836- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr value_type& value () & {
835+ _LIBCPP_HIDE_FROM_ABI constexpr value_type& value () & {
837836 if (!this ->has_value ())
838837 std::__throw_bad_optional_access ();
839838 return this ->__get ();
840839 }
841840
842- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr value_type&& value() && {
841+ _LIBCPP_HIDE_FROM_ABI constexpr value_type&& value() && {
843842 if (!this ->has_value ())
844843 std::__throw_bad_optional_access ();
845844 return std::move (this ->__get ());
846845 }
847846
848- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr value_type const && value() const && {
847+ _LIBCPP_HIDE_FROM_ABI constexpr value_type const && value() const && {
849848 if (!this ->has_value ())
850849 std::__throw_bad_optional_access ();
851850 return std::move (this ->__get ());
@@ -867,7 +866,7 @@ public:
867866
868867# if _LIBCPP_STD_VER >= 23
869868 template <class _Func >
870- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto and_then (_Func&& __f) & {
869+ _LIBCPP_HIDE_FROM_ABI constexpr auto and_then (_Func&& __f) & {
871870 using _Up = invoke_result_t <_Func, value_type&>;
872871 static_assert (__is_std_optional<remove_cvref_t <_Up>>::value,
873872 " Result of f(value()) must be a specialization of std::optional" );
@@ -877,7 +876,7 @@ public:
877876 }
878877
879878 template <class _Func >
880- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto and_then (_Func&& __f) const & {
879+ _LIBCPP_HIDE_FROM_ABI constexpr auto and_then (_Func&& __f) const & {
881880 using _Up = invoke_result_t <_Func, const value_type&>;
882881 static_assert (__is_std_optional<remove_cvref_t <_Up>>::value,
883882 " Result of f(value()) must be a specialization of std::optional" );
@@ -887,7 +886,7 @@ public:
887886 }
888887
889888 template <class _Func >
890- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto and_then (_Func&& __f) && {
889+ _LIBCPP_HIDE_FROM_ABI constexpr auto and_then (_Func&& __f) && {
891890 using _Up = invoke_result_t <_Func, value_type&&>;
892891 static_assert (__is_std_optional<remove_cvref_t <_Up>>::value,
893892 " Result of f(std::move(value())) must be a specialization of std::optional" );
@@ -907,7 +906,7 @@ public:
907906 }
908907
909908 template <class _Func >
910- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto transform (_Func&& __f) & {
909+ _LIBCPP_HIDE_FROM_ABI constexpr auto transform (_Func&& __f) & {
911910 using _Up = remove_cv_t <invoke_result_t <_Func, value_type&>>;
912911 static_assert (!is_array_v<_Up>, " Result of f(value()) should not be an Array" );
913912 static_assert (!is_same_v<_Up, in_place_t >, " Result of f(value()) should not be std::in_place_t" );
@@ -919,7 +918,7 @@ public:
919918 }
920919
921920 template <class _Func >
922- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto transform (_Func&& __f) const & {
921+ _LIBCPP_HIDE_FROM_ABI constexpr auto transform (_Func&& __f) const & {
923922 using _Up = remove_cv_t <invoke_result_t <_Func, const value_type&>>;
924923 static_assert (!is_array_v<_Up>, " Result of f(value()) should not be an Array" );
925924 static_assert (!is_same_v<_Up, in_place_t >, " Result of f(value()) should not be std::in_place_t" );
@@ -931,7 +930,7 @@ public:
931930 }
932931
933932 template <class _Func >
934- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto transform (_Func&& __f) && {
933+ _LIBCPP_HIDE_FROM_ABI constexpr auto transform (_Func&& __f) && {
935934 using _Up = remove_cv_t <invoke_result_t <_Func, value_type&&>>;
936935 static_assert (!is_array_v<_Up>, " Result of f(std::move(value())) should not be an Array" );
937936 static_assert (!is_same_v<_Up, in_place_t >, " Result of f(std::move(value())) should not be std::in_place_t" );
@@ -943,7 +942,7 @@ public:
943942 }
944943
945944 template <class _Func >
946- _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto transform (_Func&& __f) const && {
945+ _LIBCPP_HIDE_FROM_ABI constexpr auto transform (_Func&& __f) const && {
947946 using _Up = remove_cvref_t <invoke_result_t <_Func, const value_type&&>>;
948947 static_assert (!is_array_v<_Up>, " Result of f(std::move(value())) should not be an Array" );
949948 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