Constructor
<boost/url/segments_encoded_view.hpp>
segments_encoded_view(
    iterator first,
    iterator last) noexcept;
This function creates a new segments_encoded_view from a pair of iterators referring to elements of another encoded segments view. The resulting view references the same underlying character buffer as the original.
The caller is responsible for ensuring that the lifetime of the original buffer extends until the constructed view is no longer referenced.
segments_encoded_view ps( "/path/to/file.txt" );
segments_encoded_view sub(
    std::next(ps.begin()),
    ps.end());
// sub represents "to/file.txt"
The iterators must be valid and belong to the same segments_encoded_view.
sub.buffer() references characters in the original ps.buffer().
Linear in sub.buffer()
Throws nothing.
| Name | Description | 
|---|---|
| first | The beginning iterator. | 
| last | The ending iterator. |