Set a value
iterator
set(
string_view key,
string_view value,
ignore_case_param ic);
Declared in file <src/params_ref.cpp> at line 189
This function performs one of two actions depending on the value of `this->contains( key, ic )`.
All iterators are invalidated.
url u( "?id=42&id=69" );
u.params().set( "id", "none" );
assert( u.params().count( "id" ) == 1 );
this->count( key, ic ) == 1 && this->find( key, ic )->value == value
Linear in `this->url().encoded_query().size()`.
Strong guarantee. Calls to allocate may throw.