bsl::basic_string<char>::ends_with

Return true if this string contains at least one symbol and the last symbol of this string is equal to the specified character, and false otherwise. CHAR_TRAITS::eq is used to compare characters. See {Lexicographical Comparisons}.

Synopsis

Declared in <bslstl_string.h>

bool
ends_with(char character) const noexcept;