bsl::basic_string::contains

contains overloads

Synopses

Declared in <bslstl_string.h>

Return true if this view contains with the specified character, and false otherwise.

bool
contains(CHAR_TYPE character) const noexcept;
» more...

Return true if this view contains with the specified subview, and false otherwise. See {Lexicographical Comparisons}.

bool
contains(basic_string_view<CHAR_TYPE, CHAR_TRAITS> subview) const noexcept;
» more...

Return whether this string contains characterString.

bool
contains(CHAR_TYPE const* characterString) const;
» more...

Return Value

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

Parameters

NameDescription
charactercharacter value
subviewstring view to search for
characterStringnull-terminated substring to search for