Insert an element.
iterator insert( iterator before, string_view s);
This function inserts a segment specified by the percent-encoded string
s
, at the position preceding
before
. The string must
contain a valid percent-encoding, or else an exception is thrown. All
references and iterators starting from the newly inserted element and
up to and including the last element and end
iterators are invalidated.
Behavior is undefined if the element belongs to the container
Strong guarantee. Calls to allocate may throw. Exceptions thrown on invalid input.
An iterator pointing to the inserted value.
Name |
Description |
---|---|
|
An iterator before which the new element should be inserted. |
|
A valid percent-encoded string to be inserted. |
Type |
Thrown On |
---|---|
|
invalid percent-encoding |