[#mrdocs-find_last_of]
= xref:mrdocs.adoc[mrdocs]::find&lowbar;last&lowbar;of
:relfileprefix: ../
:mrdocs:

Find the last element in a range that matches an element in the specified range&period;

== Synopsis

Declared in `&lt;mrdocs&sol;Support&sol;Algorithm&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    std::ranges::range Range,
    std::ranges::range Els&gt;
requires std&colon;&colon;equality&lowbar;comparable&lowbar;with&lt;std&colon;&colon;ranges&colon;&colon;range&lowbar;value&lowbar;t&lt;Els&gt;, std&colon;&colon;ranges&colon;&colon;range&lowbar;value&lowbar;t&lt;Range&gt;&gt;
auto
find&lowbar;last&lowbar;of(
    Range&& range,
    Els&& els);
----

== Return Value

An iterator to the last element found, or std&colon;&colon;ranges&colon;&colon;end(range) if not found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *range*
| The range to search&period;
| *els*
| The elements to search for&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
