[libc++] Implement LWG3953 (#107535)

Closes #105303
This commit is contained in:
NoumanAmir-10xe 2024-09-09 23:49:22 +05:00 committed by GitHub
parent eec1ee8ef1
commit 6776d65cea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@
"`LWG3948 <https://wg21.link/LWG3948>`__","``possibly-const-range and as-const-pointer`` should be ``noexcept``","2023-11 (Kona)","","",""
"`LWG3949 <https://wg21.link/LWG3949>`__","``std::atomic<bool>``'s trivial destructor dropped in C++17 spec wording","2023-11 (Kona)","","",""
"`LWG3951 <https://wg21.link/LWG3951>`__","[expected.object.swap]: Using ``value()`` instead of ``has_value()``","2023-11 (Kona)","|Complete|","16.0",""
"`LWG3953 <https://wg21.link/LWG3953>`__","``iter_move`` for ``common_iterator`` and ``counted_iterator`` should return ``decltype(auto)``","2023-11 (Kona)","","",""
"`LWG3953 <https://wg21.link/LWG3953>`__","``iter_move`` for ``common_iterator`` and ``counted_iterator`` should return ``decltype(auto)``","2023-11 (Kona)","|Complete|","20.0",""
"`LWG3957 <https://wg21.link/LWG3957>`__","[container.alloc.reqmts] The value category of v should be claimed","2023-11 (Kona)","","",""
"`LWG3965 <https://wg21.link/LWG3965>`__","Incorrect example in [format.string.escaped] p3 for formatting of combining characters","2023-11 (Kona)","|Complete|","19.0",""
"`LWG3970 <https://wg21.link/LWG3970>`__","[mdspan.syn] Missing definition of ``full_extent_t`` and ``full_extent``","2023-11 (Kona)","","",""

1 Issue # Issue Name Meeting Status First released version Notes
30 `LWG3948 <https://wg21.link/LWG3948>`__ ``possibly-const-range and as-const-pointer`` should be ``noexcept`` 2023-11 (Kona)
31 `LWG3949 <https://wg21.link/LWG3949>`__ ``std::atomic<bool>``'s trivial destructor dropped in C++17 spec wording 2023-11 (Kona)
32 `LWG3951 <https://wg21.link/LWG3951>`__ [expected.object.swap]: Using ``value()`` instead of ``has_value()`` 2023-11 (Kona) |Complete| 16.0
33 `LWG3953 <https://wg21.link/LWG3953>`__ ``iter_move`` for ``common_iterator`` and ``counted_iterator`` should return ``decltype(auto)`` 2023-11 (Kona) |Complete| 20.0
34 `LWG3957 <https://wg21.link/LWG3957>`__ [container.alloc.reqmts] The value category of v should be claimed 2023-11 (Kona)
35 `LWG3965 <https://wg21.link/LWG3965>`__ Incorrect example in [format.string.escaped] p3 for formatting of combining characters 2023-11 (Kona) |Complete| 19.0
36 `LWG3970 <https://wg21.link/LWG3970>`__ [mdspan.syn] Missing definition of ``full_extent_t`` and ``full_extent`` 2023-11 (Kona)

View File

@ -235,7 +235,7 @@ public:
return std::__unchecked_get<_Sent>(__x.__hold_) - std::__unchecked_get<_I2>(__y.__hold_);
}
_LIBCPP_HIDE_FROM_ABI friend constexpr iter_rvalue_reference_t<_Iter>
_LIBCPP_HIDE_FROM_ABI friend constexpr decltype(auto)
iter_move(const common_iterator& __i) noexcept(noexcept(ranges::iter_move(std::declval<const _Iter&>())))
requires input_iterator<_Iter>
{

View File

@ -249,7 +249,7 @@ public:
return __rhs.__count_ <=> __lhs.__count_;
}
_LIBCPP_HIDE_FROM_ABI friend constexpr iter_rvalue_reference_t<_Iter>
_LIBCPP_HIDE_FROM_ABI friend constexpr decltype(auto)
iter_move(const counted_iterator& __i) noexcept(noexcept(ranges::iter_move(__i.__current_)))
requires input_iterator<_Iter>
{