[#bsl-basic_string-0faf-ends_with-0e]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic&lowbar;string]::ends&lowbar;with
:relfileprefix: ../../
:mrdocs:

Return `true` if the length of this string is equal to or greater than the length of the specified `characterString` and the last `CHAR&lowbar;TRAITS&colon;&colon;length(characterString)` characters of this string are equal to the characters of the `characterString`, and `false` otherwise&period; `CHAR&lowbar;TRAITS&colon;&colon;compare` is used to compare characters&period; See &lcub;Lexicographical Comparisons&rcub;&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;string&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
ends&lowbar;with(CHAR&lowbar;TYPE const* characterString) const;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
