Skip to content

Commit

Permalink
<xutility>: Fix inaccurate constraint of _Equal_rev_pred (#4149)
Browse files Browse the repository at this point in the history
  • Loading branch information
hewillk authored Nov 10, 2023
1 parent 5045784 commit e8390ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stl/inc/xutility
Original file line number Diff line number Diff line change
Expand Up @@ -6462,7 +6462,7 @@ namespace ranges {
concept _Equal_rev_pred_can_memcmp = is_same_v<_Pj1, identity> && is_same_v<_Pj2, identity>
&& sized_sentinel_for<_Se2, _It2> && _Equal_memcmp_is_safe<_It1, _It2, _Pr>;

template <input_iterator _It1, input_iterator _It2, sentinel_for<_It2> _Se2, class _Pr, class _Pj1, class _Pj2>
template <forward_iterator _It1, input_iterator _It2, sentinel_for<_It2> _Se2, class _Pr, class _Pj1, class _Pj2>
requires indirectly_comparable<_It1, _It2, _Pr, _Pj1, _Pj2>
_NODISCARD constexpr pair<bool, _It1> _Equal_rev_pred(
_It1 _First1, _It2 _First2, const _Se2 _Last2, _Pr _Pred, _Pj1 _Proj1, _Pj2 _Proj2) {
Expand Down

0 comments on commit e8390ef

Please sign in to comment.