[#bsl-basic_string-0faf-find_first_of-0c] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::find_first_of :relfileprefix: ../../ :mrdocs: `find_first_of` overloads == Synopses Declared in `<bslstl_string.h>` Find the first character belonging to 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_of-052.adoc[find_first_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_of-052.adoc[_» more..._]# Find the first character belonging to 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_of-01.adoc[find_first_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_of-01.adoc[_» more..._]# Return the position of the first matching character. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/size_type.adoc[size_type] xref:bsl/basic_string-0faf/find_first_of-05a.adoc[find_first_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_of-05a.adoc[_» more..._]# Find the first character belonging to 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_of-0a.adoc[find_first_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_of-0a.adoc[_» more..._]# Return the position of the first matching character. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/size_type.adoc[size_type] xref:bsl/basic_string-0faf/find_first_of-055.adoc[find_first_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_of-055.adoc[_» more..._]# == Return Value * position of the first matching character, or `npos` * the position of the first match, or `npos` == Parameters [cols="1,4"] |=== | Name| Description | *character* | character value | *position* | starting index | *characterString* | pointer to characters | *numChars* | the number of characters in `characterString` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#