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

Return an iterator to the beginning

== 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"]
----
xref:boost/urls/segments_base/iterator.adoc[iterator]
begin() const noexcept;
----

== Complexity

Linear in `this&hyphen;&gt;front()&period;size()` or constant if `this&hyphen;&gt;empty()`&period;

== Exception Safety

Throws nothing&period;

== Return Value

An iterator to the first segment&period;


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