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
32
third_party/libcxx/__ranges/empty_view.h
vendored
32
third_party/libcxx/__ranges/empty_view.h
vendored
|
@ -25,26 +25,26 @@ _LIBCPP_BEGIN_NAMESPACE_STD
|
|||
#if _LIBCPP_STD_VER >= 20
|
||||
|
||||
namespace ranges {
|
||||
template<class _Tp>
|
||||
requires is_object_v<_Tp>
|
||||
class empty_view : public view_interface<empty_view<_Tp>> {
|
||||
public:
|
||||
_LIBCPP_HIDE_FROM_ABI static constexpr _Tp* begin() noexcept { return nullptr; }
|
||||
_LIBCPP_HIDE_FROM_ABI static constexpr _Tp* end() noexcept { return nullptr; }
|
||||
_LIBCPP_HIDE_FROM_ABI static constexpr _Tp* data() noexcept { return nullptr; }
|
||||
_LIBCPP_HIDE_FROM_ABI static constexpr size_t size() noexcept { return 0; }
|
||||
_LIBCPP_HIDE_FROM_ABI static constexpr bool empty() noexcept { return true; }
|
||||
};
|
||||
template <class _Tp>
|
||||
requires is_object_v<_Tp>
|
||||
class empty_view : public view_interface<empty_view<_Tp>> {
|
||||
public:
|
||||
_LIBCPP_HIDE_FROM_ABI static constexpr _Tp* begin() noexcept { return nullptr; }
|
||||
_LIBCPP_HIDE_FROM_ABI static constexpr _Tp* end() noexcept { return nullptr; }
|
||||
_LIBCPP_HIDE_FROM_ABI static constexpr _Tp* data() noexcept { return nullptr; }
|
||||
_LIBCPP_HIDE_FROM_ABI static constexpr size_t size() noexcept { return 0; }
|
||||
_LIBCPP_HIDE_FROM_ABI static constexpr bool empty() noexcept { return true; }
|
||||
};
|
||||
|
||||
template<class _Tp>
|
||||
inline constexpr bool enable_borrowed_range<empty_view<_Tp>> = true;
|
||||
template <class _Tp>
|
||||
inline constexpr bool enable_borrowed_range<empty_view<_Tp>> = true;
|
||||
|
||||
namespace views {
|
||||
namespace views {
|
||||
|
||||
template <class _Tp>
|
||||
inline constexpr empty_view<_Tp> empty{};
|
||||
template <class _Tp>
|
||||
inline constexpr empty_view<_Tp> empty{};
|
||||
|
||||
} // namespace views
|
||||
} // namespace views
|
||||
} // namespace ranges
|
||||
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue