bsl::unordered_set::begin

Return a local iterator to the first element in the bucket at index.

Synopsis

Declared in <bslstl_unorderedset.h>

unordered_set<KEY, HASH, EQUAL, ALLOCATOR>::const_local_iterator
begin(size_type index) const;

Description

Return a local iterator providing non-modifiable access to the first value_type object (in the sequence of value_type objects) of the bucket having the specified index in the array of buckets maintained by this set, or the end(index) otherwise.

Return Value

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

Parameters

NameDescription
indexbucket index