[#bsl-basic_string-0faf-find_first_not_of-08b]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic&lowbar;string]::find&lowbar;first&lowbar;not&lowbar;of
:relfileprefix: ../../
:mrdocs:

Find the first character not in the specified set&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;string&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/basic_string-0faf/size_type.adoc[size&lowbar;type]
find&lowbar;first&lowbar;not&lowbar;of(
    xref:bsl/basic_string-0faf.adoc[basic&lowbar;string] const& characterString,
    xref:bsl/basic_string-0faf/size_type.adoc[size&lowbar;type] position = 0) const noexcept;
----

== Description

Return the position of the _first_ occurrence of a character _not_ belonging to the specified `characterString`, if such an occurrence can be found in this string (on or _after_ the optionally specified `position` if such a `position` is specified), and return `npos` otherwise&period;

== Return Value

position of the first non&hyphen;matching character, or `npos`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *characterString*
| pointer to characters
| *position*
| starting index
|===


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