[#boost-urls-params_ref-erase-0f9]
= xref:boost/urls/params_ref/erase-0f9.adoc[boost::urls::params&lowbar;ref::erase]
:relfileprefix: ../../../
:mrdocs:

Erase elements

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/params_ref.hpp#L622[boost&sol;url&sol;params&lowbar;ref&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/params_base.adoc[iterator]
erase(
    xref:boost/urls/params_base.adoc[iterator] first,
    xref:boost/urls/params_base.adoc[iterator] last) noexcept;
----

== Description

This function removes a range of elements from the container&period;

All iterators that are equal to `first` or come after are invalidated&period;

== Complexity
Linear in `this&hyphen;&gt;url()&period;encoded&lowbar;query()&period;size()`&period;

== Exception Safety
Throws nothing&period;

== Return Value

An iterator to one past the removed range&period;

== Parameters

[cols=2]
|===
| Name
| Description
| *first*
| The first element to remove&period;
| *last*
| One past the last element to remove&period;
|===


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