[#boost-urls-decode_view-remove_suffix]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/decode_view.adoc[decode&lowbar;view]::remove&lowbar;suffix
:relfileprefix: ../../../
:mrdocs:

Remove the last characters

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/decode_view.hpp#L495[boost&sol;url&sol;decode&lowbar;view&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
remove&lowbar;suffix(xref:boost/urls/decode_view/size_type.adoc[size&lowbar;type] n);
----

== Description

== Example
[,cpp]
----
decode_view d( "Program%20Files" );
d.remove_prefix( 6 );
assert( d == "Program" );
----
== Preconditions
[,cpp]
----
not this->empty()
----
== Complexity
Linear&period;

== Parameters

[cols=2]
|===
| Name
| Description
| *n*
| The number of characters to remove
|===


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