[#bsl-basic_string-01d-contains-07] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-01d.adoc[basic_string<char8_t>]::contains :relfileprefix: ../../ :mrdocs: `contains` overloads == Synopses Declared in `<bslstl_string.h>` Return `true` if this view contains with the specified `character`, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:bsl/basic_string-01d/contains-09f.adoc[contains](char8_t character) const noexcept; ---- [.small]#xref:bsl/basic_string-01d/contains-09f.adoc[_» more..._]# Return `true` if this view contains with the specified `subview`, and `false` otherwise. See {Lexicographical Comparisons}. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:bsl/basic_string-01d/contains-09b.adoc[contains](basic_string_view<char8_t, char_traits<char8_t>> subview) const noexcept; ---- [.small]#xref:bsl/basic_string-01d/contains-09b.adoc[_» more..._]# Return `true` if this view contains with the specified `characterString`, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:bsl/basic_string-01d/contains-0d.adoc[contains](char8_t const* characterString) const; ---- [.small]#xref:bsl/basic_string-01d/contains-0d.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#