string::ends_with
Return whether the string end with a string.
Synopsis
bool
ends_with(
string_view s) const noexcept; (1)
bool
ends_with(
char ch) const noexcept; (2)
Description
Returns true
if the string end with s
, and false
otherwise.
Complexity
Linear.
Parameters
Name | Description |
---|---|
|
The string to check for. |
|
The character to check for. |