boost::urls::segments_ref::iterator :: Boost Libraries Documentation

# boost::urls::segments_ref::iterator

A Bidirectional iterator to a path segment

## Synopsis

Declared in `<boost/url/impl/segments_base.hpp>`

    class iterator { /* see-below */ };

## Friends

Name | Description
--- | ---
`boost::urls::detail::segments_iter_access` |
`boost::urls::segments_ref` | A view representing path segments in a URL
`boost::urls::segments_base` | Common functionality for containers

## Description

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

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

Created with MrDocs