[#boost-urls-params_ref-set-0f]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/params_ref.adoc[params&lowbar;ref]::set
:relfileprefix: ../../../
:mrdocs:

Set a value

== Synopses

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/params_ref.hpp#L851[boost&sol;url&sol;params&lowbar;ref&period;hpp]&gt;`

Set a value


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/params_base/iterator.adoc[iterator]
xref:boost/urls/params_ref/set-09.adoc[set](
    xref:boost/urls/params_base/iterator.adoc[iterator] pos,
    core::string&lowbar;view value);
----

[.small]#xref:boost/urls/params_ref/set-09.adoc[_» more&period;&period;&period;_]#

Set a value


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/params_base/iterator.adoc[iterator]
xref:boost/urls/params_ref/set-01.adoc[set](
    core::string&lowbar;view key,
    core::string&lowbar;view value,
    xref:boost/urls/ignore_case_param.adoc[ignore&lowbar;case&lowbar;param] ic = &lcub;&rcub;);
----

[.small]#xref:boost/urls/params_ref/set-01.adoc[_» more&period;&period;&period;_]#

== Return Value

* An iterator to the element&period;
* An iterator to the appended or modified element&period;

== Parameters

[cols=2]
|===
| Name
| Description
| *pos*
| An iterator to the element&period;
| *value*
| The value to assign&period; The empty string still counts as a value&period; That is, `has&lowbar;value` for the element is true&period;
| *key*
| The key to match&period; By default, a case&hyphen;sensitive comparison is used&period;
| *ic*
| An optional parameter&period; If the value xref:boost/urls/ignore_case.adoc[`ignore&lowbar;case`] is passed here, the comparison is case&hyphen;insensitive&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
