[#boost-urls-params_encoded_ref-erase-08] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/params_encoded_ref.adoc[params_encoded_ref]::erase :relfileprefix: ../../../ :mrdocs: Erase params == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/params_encoded_ref.hpp#L597[boost/url/params_encoded_ref.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/params_encoded_base/iterator.adoc[iterator] erase(xref:boost/urls/params_encoded_base/iterator.adoc[iterator] pos) noexcept; ---- == Description This function removes an element from the container. All iterators that are equal to `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 Linear in `this‐>url().encoded_query().size()`. === Exception Safety Throws nothing. == Return Value An iterator to one past the removed element. == Parameters |=== | Name | Description | *pos* | An iterator to the element. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#