Skip to content

Commit 16c3fc4

Browse files
burblebeetkoeppe
authored andcommitted
P3217R0 Adjoints to "Enabling list-initialization for algorithms": find_last
1 parent 72f4652 commit 16c3fc4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: source/algorithms.tex

+4-2
Original file line numberDiff line numberDiff line change
@@ -3766,10 +3766,12 @@
37663766

37673767
\indexlibraryglobal{find_last}%
37683768
\begin{itemdecl}
3769-
template<@\libconcept{forward_iterator}@ I, @\libconcept{sentinel_for}@<I> S, class T, class Proj = identity>
3769+
template<@\libconcept{forward_iterator}@ I, @\libconcept{sentinel_for}@<I> S, class Proj = identity,
3770+
class T = projected_value_t<I, Proj>>
37703771
requires @\libconcept{indirect_binary_predicate}@<ranges::equal_to, projected<I, Proj>, const T*>
37713772
constexpr subrange<I> ranges::find_last(I first, S last, const T& value, Proj proj = {});
3772-
template<@\libconcept{forward_range}@ R, class T, class Proj = identity>
3773+
template<@\libconcept{forward_range}@ R, class Proj = identity,
3774+
class T = projected_value_t<iterator_t<R>, Proj>>
37733775
requires @\libconcept{indirect_binary_predicate}@<ranges::equal_to, projected<iterator_t<R>, Proj>, const T*>
37743776
constexpr borrowed_subrange_t<R> ranges::find_last(R&& r, const T& value, Proj proj = {});
37753777
template<@\libconcept{forward_iterator}@ I, @\libconcept{sentinel_for}@<I> S, class Proj = identity,

0 commit comments

Comments
 (0)