Home | Libraries | People | FAQ | More |
Set a value.
iterator set( iterator pos, string_view value);
This function replaces the value of an element at the specified position.
All iterators that are equal to pos
or come after are invalidated.
url u( "?id=42&id=69" ); u.params().set( u.params().begin(), "none" ); assert( u.encoded_query() == "id=none&id=69" );
Linear in this->url().encoded_query().size()
.
Strong guarantee. Calls to allocate may throw.
An iterator to the element.
Name |
Description |
---|---|
|
An iterator to the element. |
|
The value to assign. The empty string still counts as a value.
That is, |