:relfileprefix: ../../../
[#8A1459CB237A11FC6965FC29EC16E26399A6E0FA]

= Function params_encoded_ref::erase

pass:v,q[Erase params]


== Synopsis

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

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

== Description

pass:v,q[This function removes an element from] pass:v,q[the container.]
pass:v,q[All iterators that are equal to]
pass:v,q[`pos` or come after are invalidated.]

=== Example
[,cpp]
----
url u( "?first=John&last=Doe" );

params_encoded_ref::iterator it = u.encoded_params().erase( u.encoded_params().begin() );

assert( u.encoded_query() == "last=Doe" );
----

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

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



== Return Value

* `iterator` 


== Parameters

|===
| Name | Type 

| *pos*
| `iterator`

|===



