Insert segments
Synopsis
Declared in header </boost/url/segments_encoded_ref.hpp#L400[boost/url/segments_encoded_ref.hpp,window=blank_]>
segments_encoded_base::iterator
insert(
segments_encoded_base::iterator before,
pct_string_view s);
Description
This function inserts a segment before the specified position.
Reserved characters in the segment are
automatically escaped.
Escapes in the segment are preserved.
All iterators that are equal to
before
or come after are invalidated.
Complexity
Linear in s.size() + this->url().encoded_resource().size()
.
Exception Safety
Strong guarantee. Calls to allocate may throw. Exceptions thrown on invalid input.
Return Value
-
iterator
Parameters
Name | Type |
---|---|
before |
|
s |
|