[#bsl-basic_string-0faf-find_first_not_of-06] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::find_first_not_of :relfileprefix: ../../ :mrdocs: `find_first_not_of` overloads == Synopses Declared in `<bslstl_string.h>` Find the first character not in the specified set. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/size_type.adoc[size_type] xref:bsl/basic_string-0faf/find_first_not_of-0bf.adoc[find_first_not_of]( CHAR_TYPE character, xref:bsl/basic_string-0faf/size_type.adoc[size_type] position = 0) const; ---- [.small]#xref:bsl/basic_string-0faf/find_first_not_of-0bf.adoc[_» more..._]# Find the first character not in the specified set. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/size_type.adoc[size_type] xref:bsl/basic_string-0faf/find_first_not_of-08b.adoc[find_first_not_of]( xref:bsl/basic_string-0faf.adoc[basic_string] const& characterString, xref:bsl/basic_string-0faf/size_type.adoc[size_type] position = 0) const noexcept; ---- [.small]#xref:bsl/basic_string-0faf/find_first_not_of-08b.adoc[_» more..._]# Find the first character not in `characterString`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/size_type.adoc[size_type] xref:bsl/basic_string-0faf/find_first_not_of-086.adoc[find_first_not_of]( CHAR_TYPE const* characterString, xref:bsl/basic_string-0faf/size_type.adoc[size_type] position = 0) const; ---- [.small]#xref:bsl/basic_string-0faf/find_first_not_of-086.adoc[_» more..._]# Find the first character not in the specified set. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_VIEW_LIKE_TYPE> xref:bsl/basic_string-0faf/size_type.adoc[size_type] xref:bsl/basic_string-0faf/find_first_not_of-0bb.adoc[find_first_not_of]( STRING_VIEW_LIKE_TYPE const& characterString, xref:bsl/basic_string-0faf/size_type.adoc[size_type] position = 0) const noexcept(true); ---- [.small]#xref:bsl/basic_string-0faf/find_first_not_of-0bb.adoc[_» more..._]# Find the first character not in the specified set. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/size_type.adoc[size_type] xref:bsl/basic_string-0faf/find_first_not_of-07.adoc[find_first_not_of]( CHAR_TYPE const* characterString, xref:bsl/basic_string-0faf/size_type.adoc[size_type] position, xref:bsl/basic_string-0faf/size_type.adoc[size_type] numChars) const; ---- [.small]#xref:bsl/basic_string-0faf/find_first_not_of-07.adoc[_» more..._]# == Return Value * position of the first non‐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]#