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

`find&lowbar;first&lowbar;not&lowbar;of` overloads

== Synopses

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

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


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

[.small]#xref:bsl/basic_string-0faf/find_first_not_of-0bf.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/basic_string-0faf/size_type.adoc[size&lowbar;type]
xref:bsl/basic_string-0faf/find_first_not_of-08b.adoc[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;
----

[.small]#xref:bsl/basic_string-0faf/find_first_not_of-08b.adoc[_» more&period;&period;&period;_]#

Find the first character not in `characterString`&period;


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

[.small]#xref:bsl/basic_string-0faf/find_first_not_of-086.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STRING&lowbar;VIEW&lowbar;LIKE&lowbar;TYPE&gt;
xref:bsl/basic_string-0faf/size_type.adoc[size&lowbar;type]
xref:bsl/basic_string-0faf/find_first_not_of-0bb.adoc[find&lowbar;first&lowbar;not&lowbar;of](
    STRING&lowbar;VIEW&lowbar;LIKE&lowbar;TYPE const& characterString,
    xref:bsl/basic_string-0faf/size_type.adoc[size&lowbar;type] position = 0) const noexcept(true);
----

[.small]#xref:bsl/basic_string-0faf/find_first_not_of-0bb.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:bsl/basic_string-0faf/find_first_not_of-07.adoc[_» more&period;&period;&period;_]#

== Return Value

* position of the first non&hyphen;matching character, or `npos`
* index of the first matching character, or `npos` if none

== Parameters

[cols="1,4"]
|===
| Name| Description
| *character*
| character value
| *position*
| starting index
| *characterString*
| pointer to characters
| *numChars*
| number of characters
|===


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