:relfileprefix: ../../../
[#F9D54C8F36D5AEDEB906937B6BFC245587C763B4]

= Function params_ref::erase

pass:v,q[Erase elements]


== Synopsis

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

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

== Description

pass:v,q[This function removes a range of elements] pass:v,q[from the container.]
pass:v,q[All iterators that are equal to]
pass:v,q[`first` or come after are invalidated.]

=== Complexity
pass:v,q[Linear in `this->url().encoded_query().size()`.]

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



== Return Value

* `iterator` 


== Parameters

|===
| Name | Type 

| *first*
| `iterator`

| *last*
| `iterator`

|===



