[#boost-urls-grammar-find_if]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/grammar.adoc[grammar]::find&lowbar;if
:relfileprefix: ../../../
:mrdocs:

Find the first character in the string that is in the set&period;

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/charset.hpp#L144[boost&sol;url&sol;grammar&sol;charset&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:boost/urls/grammar/CharSet.adoc[CharSet] CS&gt;
char const*
find&lowbar;if(
    char const const* first,
    char const const* last,
    CS const& cs) noexcept;
----

== Description

== Exception Safety
Throws nothing&period;

== Return Value

A pointer to the found character, otherwise the value `last`&period;

== Parameters

[cols=2]
|===
| Name
| Description
| *first*
| A pointer to the first character in the string to search&period;
| *last*
| A pointer to one past the last character in the string to search&period;
| *cs*
| The character set to use&period;
|===

== See Also

xref:boost/urls/grammar/find_if_not.adoc[`find&lowbar;if&lowbar;not`]&period;


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