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;
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;
Return whether this string contains characterString.
bool
contains(CHAR_TYPE const* characterString) const;
Return Value
-
trueif the sequence occurs in this string, otherwisefalse -
trueifcharacterStringoccurs in this string
Parameters
Name |
Description |
character |
character value |
subview |
string view to search for |
characterString |
null‐terminated substring to search for |
Created with MrDocs