Return whether this string ends with the specified sequence.
Declared in <bslstl_string.h>
Return whether this string ends with the specified sequence.
bool
ends_with(CHAR_TYPE character) const noexcept;
» more...
Return whether this string ends with the specified sequence.
bool
ends_with(basic_string_view<CHAR_TYPE, CHAR_TRAITS> characterString) const noexcept;
» more...
Return whether this string ends with the specified sequence.
bool
ends_with(CHAR_TYPE const* characterString) const;
» more...
true if this string ends with the sequence, otherwise false
| Name | Description |
|---|---|
| character | character value |
| characterString | pointer to characters |