:relfileprefix: ../../../ [#D663BCBD1314F22B2AED50FEA17EC614D4D248AB] = Function segments_ref::assign pass:v,q[Assign segments] == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- template void assign( FwdIt first, FwdIt last); ---- == Description pass:v,q[The existing contents are replaced] pass:v,q[by a copy of the contents of the range.] pass:v,q[Reserved characters in the range are] pass:v,q[automatically escaped.] pass:v,q[All iterators are invalidated.] [NOTE] pass:v,q[None of the character buffers referenced] pass:v,q[by the range may overlap the character] pass:v,q[buffer of the underlying url, or else] pass:v,q[the behavior is undefined.] === Mandates [,cpp] ---- std::is_convertible< std::iterator_traits< FwdIt >::reference_type, core::string_view >::value == true ---- === Complexity pass:v,q[Linear in `std::distance( first, last ) + this->url().encoded_query().size() + this->url().encoded_fragment().size()`.] === Exception Safety pass:v,q[Strong guarantee.] pass:v,q[Calls to allocate may throw.] == Return Value * `void` == Parameters |=== | Name | Type | *first* | `FwdIt` | *last* | `FwdIt` |===