:relfileprefix: ../../../
[#boost-urls-params_ref-erase-0f]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/params_ref.adoc[pass:[params_ref]]::erase


Erase elements


=== Synopsis

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

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

=== Description


This function removes a range of elements
from the container.



All iterators that are equal to
`first` or come after are invalidated.

=== Linear in `this-&gt;url().encoded_query().size()`.

=== Throws nothing.




=== Return Value


An iterator to one past
the removed range.



=== Parameters

|===
| Name | Description 

| *first,*
| 
last The range of
elements to erase.

|===




