[#bsl-basic_string-0e-find-067]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0e.adoc[basic&lowbar;string&lt;wchar&lowbar;t&gt;]::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&lowbar;TRAITS&colon;&colon;eq` to compare characters, and return `npos` otherwise&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;string&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/basic_string-0e/size_type.adoc[size&lowbar;type]
find(
    xref:bsl/basic_string-0faf.adoc[basic&lowbar;string&lt;wchar&lowbar;t&gt;] const& substring,
    xref:bsl/basic_string-0e/size_type.adoc[size&lowbar;type] position = 0) const noexcept;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
