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

Return whether this string ends with the specified sequence&period;

== Synopses

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

Return whether this string ends with the specified sequence&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:bsl/basic_string-0faf/ends_with-0f.adoc[ends&lowbar;with](CHAR&lowbar;TYPE character) const noexcept;
----

[.small]#xref:bsl/basic_string-0faf/ends_with-0f.adoc[_» more&period;&period;&period;_]#

Return whether this string ends with the specified sequence&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:bsl/basic_string-0faf/ends_with-09.adoc[ends&lowbar;with](basic&lowbar;string&lowbar;view&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt; characterString) const noexcept;
----

[.small]#xref:bsl/basic_string-0faf/ends_with-09.adoc[_» more&period;&period;&period;_]#

Return whether this string ends with the specified sequence&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:bsl/basic_string-0faf/ends_with-0e.adoc[ends&lowbar;with](CHAR&lowbar;TYPE const* characterString) const;
----

[.small]#xref:bsl/basic_string-0faf/ends_with-0e.adoc[_» more&period;&period;&period;_]#

== Return Value

`true` if this string ends with the sequence, otherwise `false`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *character*
| character value
| *characterString*
| pointer to characters
|===


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