:relfileprefix: ../../../
[#boost-urls-decode_view-remove_suffix]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/decode_view.adoc[pass:[decode_view]]::remove_suffix


Remove the last characters


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/decode_view.hpp#L483[boost/url/decode_view.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
void
remove_suffix(xref:boost/urls/decode_view/size_type.adoc[size_type] n);
----

=== Description

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

=== Linear.








