mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-03 19:22:27 +00:00
Release Cosmopolitan v3.6.0
This release is an atomic upgrade to GCC 14.1.0 with C23 and C++23
This commit is contained in:
parent
62ace3623a
commit
5660ec4741
1585 changed files with 117353 additions and 271644 deletions
11
third_party/libcxx/__ranges/split_view.h
vendored
11
third_party/libcxx/__ranges/split_view.h
vendored
|
@ -36,6 +36,9 @@
|
|||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
_LIBCPP_PUSH_MACROS
|
||||
#include <__undef_macros>
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
#if _LIBCPP_STD_VER >= 20
|
||||
|
@ -194,10 +197,10 @@ public:
|
|||
|
||||
namespace views {
|
||||
namespace __split_view {
|
||||
struct __fn : __range_adaptor_closure<__fn> {
|
||||
struct __fn {
|
||||
// clang-format off
|
||||
template <class _Range, class _Pattern>
|
||||
_LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI
|
||||
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI
|
||||
constexpr auto operator()(_Range&& __range, _Pattern&& __pattern) const
|
||||
noexcept(noexcept(split_view(std::forward<_Range>(__range), std::forward<_Pattern>(__pattern))))
|
||||
-> decltype( split_view(std::forward<_Range>(__range), std::forward<_Pattern>(__pattern)))
|
||||
|
@ -206,7 +209,7 @@ struct __fn : __range_adaptor_closure<__fn> {
|
|||
|
||||
template <class _Pattern>
|
||||
requires constructible_from<decay_t<_Pattern>, _Pattern>
|
||||
_LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Pattern&& __pattern) const
|
||||
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Pattern&& __pattern) const
|
||||
noexcept(is_nothrow_constructible_v<decay_t<_Pattern>, _Pattern>) {
|
||||
return __range_adaptor_closure_t(std::__bind_back(*this, std::forward<_Pattern>(__pattern)));
|
||||
}
|
||||
|
@ -224,4 +227,6 @@ inline constexpr auto split = __split_view::__fn{};
|
|||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
_LIBCPP_POP_MACROS
|
||||
|
||||
#endif // _LIBCPP___RANGES_SPLIT_VIEW_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue