Return whether this string ends with the specified sequence.
Synopsis
Declared in <bslstl_string.h>
bool
ends_with(CHAR_TYPE character) const noexcept;
Description
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}.
Return Value
true if this string ends with the sequence, otherwise false
Parameters
Name |
Description |
character |
character value |
Created with MrDocs