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

`contains` overloads

== Synopses

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

Return `true` if this view contains with the specified `character`, and `false` otherwise&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:bsl/basic_string-0faf/contains-0f.adoc[contains](CHAR&lowbar;TYPE character) const noexcept;
----

[.small]#xref:bsl/basic_string-0faf/contains-0f.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:bsl/basic_string-0faf/contains-005.adoc[contains](basic&lowbar;string&lowbar;view&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt; subview) const noexcept;
----

[.small]#xref:bsl/basic_string-0faf/contains-005.adoc[_» more&period;&period;&period;_]#

Return whether this string contains `characterString`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:bsl/basic_string-0faf/contains-007.adoc[contains](CHAR&lowbar;TYPE const* characterString) const;
----

[.small]#xref:bsl/basic_string-0faf/contains-007.adoc[_» more&period;&period;&period;_]#

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *character*
| character value
| *subview*
| string view to search for
| *characterString*
| null&hyphen;terminated substring to search for
|===


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