[#bsl-basic_string-0fb-ends_with-0b]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0fb.adoc[basic&lowbar;string&lt;char&gt;]::ends&lowbar;with
:relfileprefix: ../../
:mrdocs:

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&period; `CHAR&lowbar;TRAITS&colon;&colon;eq` 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 character) const noexcept;
----


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