[#boost-urls-segments_encoded_ref-assign-03] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_encoded_ref.adoc[segments_encoded_ref]::assign :relfileprefix: ../../../ :mrdocs: == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_ref.hpp#L320[boost/url/segments_encoded_ref.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:boost/urls/segments_encoded_ref/assign-0e.adoc[assign](std::initializer_list<xref:boost/urls/pct_string_view.adoc[pct_string_view]> init); ---- [.small]#xref:boost/urls/segments_encoded_ref/assign-0e.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class FwdIt> void xref:boost/urls/segments_encoded_ref/assign-0b.adoc[assign]( FwdIt first, FwdIt last); ---- [.small]#xref:boost/urls/segments_encoded_ref/assign-0b.adoc[_» more..._]# == Exceptions |=== | Name | Thrown on | `system_error` | The list contains an invalid percent‐encoding. |=== == Parameters |=== | Name | Description | *init* | The list of segments to assign. | *first* | The first element in the range. | *last* | One past the last element in the range. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#