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

= Function params_ref::insert

pass:v,q[Insert elements]


== Synopsis

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

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/params_base.adoc[params_base]::xref:boost/urls/params_base/iterator.adoc[iterator]
insert(
    xref:boost/urls/params_base.adoc[params_base]::xref:boost/urls/params_base/iterator.adoc[iterator] before,
    const xref:boost/urls/param_view.adoc[param_view]& p);
----

== Description

pass:v,q[This function inserts a param] pass:v,q[before the specified position.]
pass:v,q[All iterators that are equal to]
pass:v,q[`before` or come after are invalidated.]

=== 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 

| *before*
| `iterator`

| *p*
| ``

|===



