:relfileprefix: ../../../ [#98BC68EC7F65E0FC7DDBB29E552A78F6A92726DE] = Function params_ref::assign pass:v,q[Assign elements] == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- void assign(initializer_list init); ---- == Description pass:v,q[This function replaces the entire] pass:v,q[contents of the view with the params] pass:v,q[in the] pass:v,q[initializer-list] pass:v,q[.] pass:v,q[All iterators are invalidated.] [NOTE] pass:v,q[The strings referenced by the inputs] pass:v,q[must not come from the underlying url,] pass:v,q[or else the behavior is undefined.] === Example [,cpp] ---- url u; u.params().assign( {{ "first", "John" }, { "last", "Doe" }} ); ---- === Complexity pass:v,q[Linear in `init.size()`.] === Exception Safety pass:v,q[Strong guarantee.] pass:v,q[Calls to allocate may throw.] == Return Value * `void` == Parameters |=== | Name | Type | *init* | `initializer_list` |===