[#boost-urls-segments_base-const_iterator]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_base.adoc[segments&lowbar;base]::const&lowbar;iterator
:relfileprefix: ../../../
:mrdocs:

A Bidirectional iterator to a path segment

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
using const&lowbar;iterator = xref:boost/urls/segments_base/iterator.adoc[iterator];
----

== Description

Objects of this type allow iteration through the segments in the path&period; Any percent&hyphen;escapes in returned strings are decoded first&period; The values returned are read&hyphen;only&semi; changes to segments must be made through the container instead, if the container supports modification&period;

The strings produced when iterators are dereferenced belong to the iterator and become invalidated when that particular iterator is incremented, decremented, or destroyed&period;


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