:relfileprefix: ../../../
[#D2C628973A75E916C2996C01E1B7B91B2FAFBF0C]

= Function decode_view::ends_with

pass:v,q[Checks if the string ends with the given prefix]


== Synopsis

Declared in header `</boost/url/decode_view.hpp#L408[boost/url/decode_view.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
bool
ends_with(char ch) const noexcept;
----

== Description


=== Example
[,cpp]
----
assert( decode_view( "Program%20Files" ).ends_with('s') );
----

=== Complexity
pass:v,q[Constant.]

=== Exception Safety
pass:v,q[Throws nothing.]



== Return Value

* `bool` 


== Parameters

|===
| Name | Type 

| *ch*
| `char`

|===



