[#bsl-basic_string-0faf-find_last_of-07] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::find_last_of :relfileprefix: ../../ :mrdocs: Find the last character belonging to the specified set. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/size_type.adoc[size_type] find_last_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; ---- == Description Return the position of the _last_ occurrence of a character belonging to the specified `characterString` of the optionally specified `numChars` length, if such an occurrence can be found in this string (on or _before_ the optionally specified `position` if such a `position` is specified), and return `npos` otherwise. If `numChars` is not specified, `CHAR_TRAITS::length(characterString)` is used. == Return Value position of the last matching character, or `npos` == Parameters [cols="1,4"] |=== | Name| Description | *characterString* | pointer to characters | *position* | starting index | *numChars* | number of characters |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#