[#boost-urls-url_base-segments-07]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/url_base.adoc[url&lowbar;base]::segments
:relfileprefix: ../../../
:mrdocs:

Return the path as a container of segments

== Synopses

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_base.hpp#L1935[boost&sol;url&sol;url&lowbar;base&period;hpp]&gt;`

Return the path as a container of segments


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls.adoc[urls]::xref:boost/urls/segments_ref.adoc[segments&lowbar;ref]
xref:boost/urls/url_base/segments-0e.adoc[segments]() noexcept;
----

[.small]#xref:boost/urls/url_base/segments-0e.adoc[_» more&period;&period;&period;_]#

Return the path as a container of segments


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/segments_view.adoc[segments&lowbar;view]
xref:boost/urls/url_base/segments-04.adoc[segments]() const noexcept;
----

[.small]#xref:boost/urls/url_base/segments-04.adoc[_» more&period;&period;&period;_]#

== Return Value

* `&ast;this`
* A bidirectional view of segments&period;

== See Also

xref:boost/urls/url_base/encoded_segments-0a.adoc[`encoded&lowbar;segments`], xref:boost/urls/url_base/set_encoded_path.adoc[`set&lowbar;encoded&lowbar;path`], xref:boost/urls/url_base/set_path.adoc[`set&lowbar;path`], xref:boost/urls/url_base/set_path_absolute.adoc[`set&lowbar;path&lowbar;absolute`]&period;

xref:boost/urls/url_view_base/is_path_absolute.adoc[`is&lowbar;path&lowbar;absolute`], xref:boost/urls/url_view_base/encoded_path.adoc[`encoded&lowbar;path`], xref:boost/urls/url_base/encoded_segments-0a.adoc[`encoded&lowbar;segments`]&period; xref:boost/urls/url_view_base/path.adoc[`path`], xref:boost/urls/segments_view.adoc[`segments&lowbar;view`]&period;


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