[#bsl-basic_string-0faf-find_last_of-032] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::find_last_of :relfileprefix: ../../ :mrdocs: `find_last_of` overloads == Synopses Declared in `<bslstl_string.h>` Return the position of the _last_ occurrence of the specified `character`, 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/size_type.adoc[size_type] xref:bsl/basic_string-0faf/find_last_of-036.adoc[find_last_of]( CHAR_TYPE character, xref:bsl/basic_string-0faf/size_type.adoc[size_type] position = npos) const; ---- [.small]#xref:bsl/basic_string-0faf/find_last_of-036.adoc[_» more..._]# Return the position of the _last_ occurrence of a character belonging to the specified `characterString`, 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/size_type.adoc[size_type] xref:bsl/basic_string-0faf/find_last_of-00.adoc[find_last_of]( xref:bsl/basic_string-0faf.adoc[basic_string] const& characterString, xref:bsl/basic_string-0faf/size_type.adoc[size_type] position = npos) const noexcept; ---- [.small]#xref:bsl/basic_string-0faf/find_last_of-00.adoc[_» more..._]# Return the position of the last occurrence of the specified `characterString` substring, or `npos` if not found. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/size_type.adoc[size_type] xref:bsl/basic_string-0faf/find_last_of-0b.adoc[find_last_of]( CHAR_TYPE const* characterString, xref:bsl/basic_string-0faf/size_type.adoc[size_type] position = npos) const; ---- [.small]#xref:bsl/basic_string-0faf/find_last_of-0b.adoc[_» more..._]# Return the position of the _last_ occurrence of a character belonging to the specified `characterString`, 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. The behavior is undefined unless the conversion from `STRING_VIEW_LIKE_TYPE` to `bsl::basic_string_view<CHAR_TYPE, CHAR_TRAITS>` does not throw any exception. Note that this behavior differs from the behavior implemented in the standard container, where the following noexcept specification is used: ` noexcept( std::is_nothrow_convertible_v<const T&, std::basic_string_view<CharT, Traits> >) ` [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_last_of-09.adoc[find_last_of]( STRING_VIEW_LIKE_TYPE const& characterString, xref:bsl/basic_string-0faf/size_type.adoc[size_type] position = npos) const noexcept(true); ---- [.small]#xref:bsl/basic_string-0faf/find_last_of-09.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/size_type.adoc[size_type] xref:bsl/basic_string-0faf/find_last_of-07.adoc[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; ---- [.small]#xref:bsl/basic_string-0faf/find_last_of-07.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#