[#bsl-basic_string-0fb-contains-066] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0fb.adoc[basic_string<char>]::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-0fb/contains-05.adoc[contains](char character) const noexcept; ---- [.small]#xref:bsl/basic_string-0fb/contains-05.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-0fb/contains-02.adoc[contains](basic_string_view<char, char_traits<char>> subview) const noexcept; ---- [.small]#xref:bsl/basic_string-0fb/contains-02.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-0fb/contains-064.adoc[contains](char const* characterString) const; ---- [.small]#xref:bsl/basic_string-0fb/contains-064.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#