:relfileprefix: ../../../ [#109CB7C426D83EC08F5BDF329CA38EA01E195A63] = Function params_ref::replace pass:v,q[Replace elements] == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- template xref:boost/urls/params_base.adoc[params_base]::xref:boost/urls/params_base/iterator.adoc[iterator] replace( xref:boost/urls/params_base.adoc[params_base]::xref:boost/urls/params_base/iterator.adoc[iterator] from, xref:boost/urls/params_base.adoc[params_base]::xref:boost/urls/params_base/iterator.adoc[iterator] to, FwdIt first, FwdIt last); ---- == Description pass:v,q[This function replaces a range of] pass:v,q[elements with a range of params.] pass:v,q[All iterators that are equal to] pass:v,q[`from` or come after are invalidated.] [NOTE] pass:v,q[The strings referenced by the inputs] pass:v,q[must not come from the underlying url,] pass:v,q[or else the behavior is undefined.] === Mandates [,cpp] ---- std::is_convertible< std::iterator_traits< FwdIt >::reference_type, param_view >::value == true ---- === Complexity pass:v,q[Linear in `this->url().encoded_query().size()`.] === Exception Safety pass:v,q[Strong guarantee.] pass:v,q[Calls to allocate may throw.] == Return Value * `iterator` == Parameters |=== | Name | Type | *from* | `iterator` | *to* | `iterator` | *first* | `FwdIt` | *last* | `FwdIt` |===