[#bsl-basic_string-0faf-rfind-0d6] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::rfind :relfileprefix: ../../ :mrdocs: Return the starting position of the _last_ occurrence of the specified `substring` within this string, if such a sequence can be found in this string (on or _before_ the optionally specified `position` if such a `position` is specified) using `CHAR_TRAITS::eq` to compare characters, and return `npos` otherwise. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/size_type.adoc[size_type] rfind( xref:bsl/basic_string-0faf.adoc[basic_string] const& substring, xref:bsl/basic_string-0faf/size_type.adoc[size_type] position = npos) const noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#