[#boost-urls-segments_encoded_view-2conversion]
= xref:boost/urls/segments_encoded_view/2conversion.adoc[boost::urls::segments&lowbar;encoded&lowbar;view::operator segments&lowbar;view]
:relfileprefix: ../../../
:mrdocs:

Conversion

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_view.hpp#L231[boost&sol;url&sol;segments&lowbar;encoded&lowbar;view&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
operator xref:boost/urls/segments_view.adoc[segments&lowbar;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&period;

Ownership is not transferred&semi; the caller is responsible for ensuring the lifetime of the buffer extends until it is no longer referenced&period;

== 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

== Return Value

A view of the segments&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
