[#bsl-unordered_map-02b-begin-0a]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered&lowbar;map]::begin
:relfileprefix: ../../
:mrdocs:

`begin` overloads

== Synopses

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

Return an iterator to the first element&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_map-02b/iterator.adoc[iterator]
xref:bsl/unordered_map-02b/begin-06.adoc[begin]() noexcept;
----

[.small]#xref:bsl/unordered_map-02b/begin-06.adoc[_» more&period;&period;&period;_]#

Return a const iterator to the first element&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_map-02b/const_iterator.adoc[const&lowbar;iterator]
xref:bsl/unordered_map-02b/begin-01.adoc[begin]() const noexcept;
----

[.small]#xref:bsl/unordered_map-02b/begin-01.adoc[_» more&period;&period;&period;_]#

Return a local iterator to the first element in bucket `index`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_map-02b/local_iterator.adoc[local&lowbar;iterator]
xref:bsl/unordered_map-02b/begin-0b.adoc[begin](xref:bsl/unordered_map-02b/size_type.adoc[size&lowbar;type] index);
----

[.small]#xref:bsl/unordered_map-02b/begin-0b.adoc[_» more&period;&period;&period;_]#

Return a const local iterator to the first element in bucket `index`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_map-02b/const_local_iterator.adoc[const&lowbar;local&lowbar;iterator]
xref:bsl/unordered_map-02b/begin-03.adoc[begin](xref:bsl/unordered_map-02b/size_type.adoc[size&lowbar;type] index) const;
----

[.small]#xref:bsl/unordered_map-02b/begin-03.adoc[_» more&period;&period;&period;_]#

== Return Value

* iterator to the first element, or `end()` if empty
* const iterator to the first element, or `end()` if empty
* local iterator to the first element, or `end(index)` if empty
* const local iterator to the first element, or `end(index)` if empty

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| bucket index
|===


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