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

Erase elements

== Synopses

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

Erase elements


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

[.small]#xref:boost/urls/params_ref/erase-05.adoc[_» more&period;&period;&period;_]#

Erase elements


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

[.small]#xref:boost/urls/params_ref/erase-0f9.adoc[_» more&period;&period;&period;_]#

Erase elements


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
xref:boost/urls/params_ref/erase-00.adoc[erase](
    core::string&lowbar;view key,
    xref:boost/urls/ignore_case_param.adoc[ignore&lowbar;case&lowbar;param] ic = &lcub;&rcub;) noexcept;
----

[.small]#xref:boost/urls/params_ref/erase-00.adoc[_» more&period;&period;&period;_]#

== Return Value

* An iterator to one past the removed element&period;
* An iterator to one past the removed range&period;
* The number of elements removed from the container&period;

== Parameters

[cols=2]
|===
| Name
| Description
| *pos*
| An iterator to the element&period;
| *first*
| The first element to remove&period;
| *last*
| One past the last element to remove&period;
| *key*
| The key to match&period; By default, a case&hyphen;sensitive comparison is used&period;
| *ic*
| An optional parameter&period; If the value xref:boost/urls/ignore_case.adoc[`ignore&lowbar;case`] is passed here, the comparison is case&hyphen;insensitive&period;
|===


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