[#bsl-set-0d-begin-054]
= xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::begin
:relfileprefix: ../../
:mrdocs:

`begin` overloads

== Synopses

Declared in `&lt;bslstl&lowbar;set&period;h&gt;`

Return an iterator to the first element, or `end` if empty&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/set-0d/iterator.adoc[set&lt;KEY, COMPARATOR, ALLOCATOR&gt;::iterator]
xref:bsl/set-0d/begin-055.adoc[begin]() noexcept;
----

[.small]#xref:bsl/set-0d/begin-055.adoc[_» more&period;&period;&period;_]#

Return a const iterator to the first element, or `end` if empty&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/set-0d/const_iterator.adoc[set&lt;KEY, COMPARATOR, ALLOCATOR&gt;::const&lowbar;iterator]
xref:bsl/set-0d/begin-0f.adoc[begin]() const noexcept;
----

[.small]#xref:bsl/set-0d/begin-0f.adoc[_» more&period;&period;&period;_]#

== Return Value

* modifiable iterator to the first element, or `end()`
* const iterator to the first element, or `end()`


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