mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-03 03:02:28 +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
16
third_party/libcxx/__memory/concepts.h
vendored
16
third_party/libcxx/__memory/concepts.h
vendored
|
@ -19,6 +19,7 @@
|
|||
#include <__ranges/concepts.h>
|
||||
#include <__type_traits/is_reference.h>
|
||||
#include <__type_traits/remove_cvref.h>
|
||||
#include <__type_traits/remove_reference.h> // TODO(modules): This should not be required
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
|
@ -36,8 +37,7 @@ namespace ranges {
|
|||
// at the address pointed-to by the iterator, which requires an lvalue.
|
||||
template <class _Ip>
|
||||
concept __nothrow_input_iterator =
|
||||
input_iterator<_Ip> &&
|
||||
is_lvalue_reference_v<iter_reference_t<_Ip>> &&
|
||||
input_iterator<_Ip> && is_lvalue_reference_v<iter_reference_t<_Ip>> &&
|
||||
same_as<remove_cvref_t<iter_reference_t<_Ip>>, iter_value_t<_Ip>>;
|
||||
|
||||
template <class _Sp, class _Ip>
|
||||
|
@ -45,20 +45,14 @@ concept __nothrow_sentinel_for = sentinel_for<_Sp, _Ip>;
|
|||
|
||||
template <class _Rp>
|
||||
concept __nothrow_input_range =
|
||||
range<_Rp> &&
|
||||
__nothrow_input_iterator<iterator_t<_Rp>> &&
|
||||
__nothrow_sentinel_for<sentinel_t<_Rp>, iterator_t<_Rp>>;
|
||||
range<_Rp> && __nothrow_input_iterator<iterator_t<_Rp>> && __nothrow_sentinel_for<sentinel_t<_Rp>, iterator_t<_Rp>>;
|
||||
|
||||
template <class _Ip>
|
||||
concept __nothrow_forward_iterator =
|
||||
__nothrow_input_iterator<_Ip> &&
|
||||
forward_iterator<_Ip> &&
|
||||
__nothrow_sentinel_for<_Ip, _Ip>;
|
||||
__nothrow_input_iterator<_Ip> && forward_iterator<_Ip> && __nothrow_sentinel_for<_Ip, _Ip>;
|
||||
|
||||
template <class _Rp>
|
||||
concept __nothrow_forward_range =
|
||||
__nothrow_input_range<_Rp> &&
|
||||
__nothrow_forward_iterator<iterator_t<_Rp>>;
|
||||
concept __nothrow_forward_range = __nothrow_input_range<_Rp> && __nothrow_forward_iterator<iterator_t<_Rp>>;
|
||||
|
||||
} // namespace ranges
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue