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

<ranges>: rename views::iota and views::repeat parameters #4908

Merged
merged 1 commit into from
Aug 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions stl/inc/ranges
Original file line number Diff line number Diff line change
Expand Up @@ -1051,11 +1051,12 @@ namespace ranges {
}

template <class _Ty1, class _Ty2>
_NODISCARD _STATIC_CALL_OPERATOR constexpr auto operator()(_Ty1&& _Val1, _Ty2&& _Val2) _CONST_CALL_OPERATOR
noexcept(noexcept(iota_view(static_cast<_Ty1&&>(_Val1), static_cast<_Ty2&&>(_Val2))))
requires requires { iota_view(static_cast<_Ty1&&>(_Val1), static_cast<_Ty2&&>(_Val2)); }
_NODISCARD _STATIC_CALL_OPERATOR constexpr auto operator()(
_Ty1&& _Start, _Ty2&& _Bound) _CONST_CALL_OPERATOR
noexcept(noexcept(iota_view(static_cast<_Ty1&&>(_Start), static_cast<_Ty2&&>(_Bound))))
requires requires { iota_view(static_cast<_Ty1&&>(_Start), static_cast<_Ty2&&>(_Bound)); }
{
return iota_view(static_cast<_Ty1&&>(_Val1), static_cast<_Ty2&&>(_Val2));
return iota_view(static_cast<_Ty1&&>(_Start), static_cast<_Ty2&&>(_Bound));
}
};

Expand Down Expand Up @@ -1306,11 +1307,12 @@ namespace ranges {
}

template <class _Ty1, class _Ty2>
_NODISCARD _STATIC_CALL_OPERATOR constexpr auto operator()(_Ty1&& _Val1, _Ty2&& _Val2) _CONST_CALL_OPERATOR
noexcept(noexcept(repeat_view(_STD forward<_Ty1>(_Val1), _STD forward<_Ty2>(_Val2))))
requires requires { repeat_view(_STD forward<_Ty1>(_Val1), _STD forward<_Ty2>(_Val2)); }
_NODISCARD _STATIC_CALL_OPERATOR constexpr auto operator()(
_Ty1&& _Value, _Ty2&& _Count) _CONST_CALL_OPERATOR
noexcept(noexcept(repeat_view(_STD forward<_Ty1>(_Value), _STD forward<_Ty2>(_Count))))
requires requires { repeat_view(_STD forward<_Ty1>(_Value), _STD forward<_Ty2>(_Count)); }
{
return repeat_view(_STD forward<_Ty1>(_Val1), _STD forward<_Ty2>(_Val2));
return repeat_view(_STD forward<_Ty1>(_Value), _STD forward<_Ty2>(_Count));
}
};

Expand Down