Skip to content

Commit c4a2d19

Browse files
[algorithm.syn] Fix synopsis entries for ranges::find_last (#7805)
P3217R0 updated ranges::find_last, but the synopsis was accidentally left unchanged.
1 parent 6c20db7 commit c4a2d19

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/algorithms.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,10 +970,12 @@
970970

971971
// \ref{alg.find.last}, find last
972972
namespace ranges {
973-
template<@\libconcept{forward_iterator}@ I, @\libconcept{sentinel_for}@<I> S, class T, class Proj = identity>
973+
template<@\libconcept{forward_iterator}@ I, @\libconcept{sentinel_for}@<I> S, class Proj = identity,
974+
class T = projected_value_t<I, Proj>>
974975
requires @\libconcept{indirect_binary_predicate}@<ranges::equal_to, projected<I, Proj>, const T*>
975976
constexpr subrange<I> find_last(I first, S last, const T& value, Proj proj = {});
976-
template<@\libconcept{forward_range}@ R, class T, class Proj = identity>
977+
template<@\libconcept{forward_range}@ R, class Proj = identity,
978+
class T = projected_value_t<iterator_t<R>, Proj>>
977979
requires
978980
@\libconcept{indirect_binary_predicate}@<ranges::equal_to, projected<iterator_t<R>, Proj>, const T*>
979981
constexpr borrowed_subrange_t<R> find_last(R&& r, const T& value, Proj proj = {});

0 commit comments

Comments
 (0)