[#bsl-basic_string-0fb-find-08] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0fb.adoc[basic_string<char>]::find :relfileprefix: ../../ :mrdocs: Return the starting position of the _first_ occurrence of the specified `substring`, if such a substring can be found in this string (on or _after_ the optionally specified `position` if such a `position` is specified) using `CHAR_TRAITS::eq` to compare characters, 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> >) ` == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_VIEW_LIKE_TYPE> xref:bsl/basic_string-0fb/size_type.adoc[size_type] find( STRING_VIEW_LIKE_TYPE const& substring, xref:bsl/basic_string-0fb/size_type.adoc[size_type] position = 0) const noexcept(true); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#