Skip to content

Commit b4a872d

Browse files
[algorithm.syn] Fix-up synopsis for ranges::find_last
Adds missed corresponding editorial changes in [algorithm.syn] for P3217R0 (which updated `ranges::find_last`).
1 parent 38a0bd4 commit b4a872d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/algorithms.tex

+4-2
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)