[#bsl-basic_string-0faf-ends_with-0e] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::ends_with :relfileprefix: ../../ :mrdocs: Return whether this string ends with the specified sequence. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool ends_with(CHAR_TYPE const* characterString) const; ---- == Description Return `true` if the length of this string is equal to or greater than the length of the specified `characterString` and the last `CHAR_TRAITS::length(characterString)` characters of this string are equal to the characters of the `characterString`, and `false` otherwise. `CHAR_TRAITS::compare` is used to compare characters. See {Lexicographical Comparisons}. == Return Value `true` if this string ends with the sequence, otherwise `false` == Parameters [cols="1,4"] |=== | Name| Description | *characterString* | pointer to characters |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#