[#bsl-basic_string-0faf-contains-0f] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::contains :relfileprefix: ../../ :mrdocs: Return `true` if this view contains with the specified `character`, and `false` otherwise. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool contains(CHAR_TYPE character) const noexcept; ---- == Return Value `true` if the sequence occurs in this string, otherwise `false` == Parameters [cols="1,4"] |=== | Name| Description | *character* | character value |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#