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>::local_iterator
begin(size_type index);

Description

Return a local iterator providing 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

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

Parameters

NameDescription
indexbucket index