[#boost-urls-segments_encoded_view-2conversion] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_encoded_view.adoc[segments_encoded_view]::operator xref:boost/urls/segments_view.adoc[segments_view] :relfileprefix: ../../../ :mrdocs: Conversion == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_view.hpp#L226[boost/url/segments_encoded_view.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- operator xref:boost/urls/segments_view.adoc[segments_view]() const noexcept; ---- == Description This conversion returns a new view which references the same underlying character buffer, and whose iterators and members return ordinary strings with decoding applied to any percent escapes. Ownership is not transferred; the caller is responsible for ensuring the lifetime of the buffer extends until it is no longer referenced. === Example [,cpp] ---- segments_view ps = parse_path( "/path/to/file.txt" ).value(); ---- === Postconditions [,cpp] ---- segments_view( *this ).buffer().data() == this->buffer().data() ---- === Complexity Constant === Exception Safety Throws nothing [.small]#Created with https://www.mrdocs.com[MrDocs]#