diff options
| author | swarmer <[email protected]> | 2025-06-11 21:26:47 +0300 |
|---|---|---|
| committer | swarmer <[email protected]> | 2025-06-11 21:45:25 +0300 |
| commit | 3575c304717964c7bd650dedfa74c8da773e5af4 (patch) | |
| tree | a7b39b8911dca164a4ed69a318ac4a01dcc1670b /contrib/libs/cxxsupp/libcxxcuda11/include | |
| parent | 76cde1f9a068bc0c9dd7b76de0290db84c5926f1 (diff) | |
Enable std::optional monadic operations
Make monadic methods usable without switching to the C++23.
commit_hash:3690a8da41d8ed8aac44bc0f7d238c076eb1e603
Diffstat (limited to 'contrib/libs/cxxsupp/libcxxcuda11/include')
| -rw-r--r-- | contrib/libs/cxxsupp/libcxxcuda11/include/optional | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/libs/cxxsupp/libcxxcuda11/include/optional b/contrib/libs/cxxsupp/libcxxcuda11/include/optional index 4048fa2f59a..1f90edee1a8 100644 --- a/contrib/libs/cxxsupp/libcxxcuda11/include/optional +++ b/contrib/libs/cxxsupp/libcxxcuda11/include/optional @@ -318,7 +318,7 @@ struct __optional_destruct_base<_Tp, false> : __val_(_VSTD::forward<_Args>(__args)...), __engaged_(true) {} -#if _LIBCPP_STD_VER >= 23 +#if _LIBCPP_STD_VER >= 20 template <class _Fp, class... _Args> _LIBCPP_HIDE_FROM_ABI constexpr __optional_destruct_base(__optional_construct_from_invoke_tag, _Fp&& __f, _Args&&... __args) @@ -360,7 +360,7 @@ struct __optional_destruct_base<_Tp, true> : __val_(_VSTD::forward<_Args>(__args)...), __engaged_(true) {} -#if _LIBCPP_STD_VER >= 23 +#if _LIBCPP_STD_VER >= 20 template <class _Fp, class... _Args> _LIBCPP_HIDE_FROM_ABI constexpr __optional_destruct_base(__optional_construct_from_invoke_tag, _Fp&& __f, _Args&&... __args) @@ -873,7 +873,7 @@ public: this->__construct_from(_VSTD::move(__v)); } -#if _LIBCPP_STD_VER >= 23 +#if _LIBCPP_STD_VER >= 20 template<class _Fp, class... _Args> _LIBCPP_HIDE_FROM_ABI constexpr explicit optional(__optional_construct_from_invoke_tag, _Fp&& __f, _Args&&... __args) @@ -1115,7 +1115,7 @@ public: static_cast<value_type>(_VSTD::forward<_Up>(__v)); } -#if _LIBCPP_STD_VER >= 23 +#if _LIBCPP_STD_VER >= 20 template<class _Func> _LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS constexpr auto and_then(_Func&& __f) & { @@ -1239,7 +1239,7 @@ public: return _VSTD::move(*this); return _VSTD::forward<_Func>(__f)(); } -#endif // _LIBCPP_STD_VER >= 23 +#endif // _LIBCPP_STD_VER >= 20 using __base::reset; }; |
