[#boost-urls-segments_ref-assign-08ed]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_ref.adoc[segments&lowbar;ref]::assign
:relfileprefix: ../../../
:mrdocs:


== Synopsis


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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:boost/urls/segments_ref/assign-08e6.adoc[assign](std::initializer&lowbar;list&lt;core::string&lowbar;view&gt; init);
----

[.small]#xref:boost/urls/segments_ref/assign-08e6.adoc[_» more..._]#

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class FwdIt&gt;
void
xref:boost/urls/segments_ref/assign-0d.adoc[assign](
    FwdIt first,
    FwdIt last);
----

[.small]#xref:boost/urls/segments_ref/assign-0d.adoc[_» more..._]#

== Parameters


|===
| Name | Description

| *init*
| The list of segments to assign&period;


| *first*
| The beginning of the range of segments to assign&period;


| *last*
| The end of the range of segments to assign&period;


|===



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