bsl::basic_string::ends_with

Return whether this string ends with the specified sequence.

Synopses

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...

Return Value

true if this string ends with the sequence, otherwise false

Parameters

NameDescription
charactercharacter value
characterStringpointer to characters