Insert segments
<include/boost/url/segments_ref.hpp>
iterator
insert(
iterator before,
core::string_view s);
This function inserts a segment before the specified position. Reserved characters in the segment are automatically escaped.
All iterators that are equal to `before` or come after are invalidated.
Calls to allocate may throw.
An iterator to the inserted segment.
Name | Description |
---|---|
before | An iterator before which the segment is inserted. This may be equal to `end()`. |
s | The segment to insert. |