[#boost-urls-params_encoded_ref-erase-0b] = xref:boost/urls/params_encoded_ref/erase-0b.adoc[boost::urls::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#L630[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] first, xref:boost/urls/params_encoded_base/iterator.adoc[iterator] last) noexcept; ---- == Description This function removes a range of params from the container. All iterators that are equal to `first` or come after are invalidated. == Complexity Linear in `this‐>url().encoded_query().size()`. == Exception Safety Throws nothing. == Return Value * An iterator to one past the removed range. * An iterator to one past the removed range. == Parameters [cols=2] |=== | Name | Description | *first* | The first element to remove. | *last* | One past the last element to remove. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#