Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P2321R2: views::adjacent, views::pairwise #3508

Merged
merged 12 commits into from
Mar 3, 2023
Prev Previous commit
Next Next commit
_Fake_copy_init is unnecessary.
StephanTLavavej committed Mar 1, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 6de8ca7a4236b0daedc0de64d2c6d76c326792dd
6 changes: 3 additions & 3 deletions stl/inc/ranges
Original file line number Diff line number Diff line change
@@ -8846,21 +8846,21 @@ namespace ranges {
}

_NODISCARD_FRIEND constexpr bool operator>(const _Iterator& _Left, const _Iterator& _Right) noexcept(
noexcept(_Fake_copy_init<bool>(_Right < _Left))) // strengthened
noexcept(_Right < _Left)) // strengthened
requires random_access_range<_Base>
{
return _Right < _Left;
}

_NODISCARD_FRIEND constexpr bool operator<=(const _Iterator& _Left, const _Iterator& _Right) noexcept(
noexcept(_Fake_copy_init<bool>(!(_Right < _Left)))) // strengthened
noexcept(!(_Right < _Left))) // strengthened
requires random_access_range<_Base>
{
return !(_Right < _Left);
}

_NODISCARD_FRIEND constexpr bool operator>=(const _Iterator& _Left, const _Iterator& _Right) noexcept(
noexcept(_Fake_copy_init<bool>(!(_Left < _Right)))) // strengthened
noexcept(!(_Left < _Right))) // strengthened
requires random_access_range<_Base>
{
return !(_Left < _Right);