[#bsl-basic_string-0faf-contains-005]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic&lowbar;string]::contains
:relfileprefix: ../../
:mrdocs:

Return `true` if this view contains with the specified `subview`, and `false` otherwise&period; See &lcub;Lexicographical Comparisons&rcub;&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
contains(basic&lowbar;string&lowbar;view&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt; subview) const noexcept;
----

== Return Value

`true` if the sequence occurs in this string, otherwise `false`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *subview*
| string view to search for
|===


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