std::unordered_set::begin(int), std::unordered_set::cbegin(int)

From Cppreference

Jump to: navigation, search
iterator begin( size_type n );
(C++11 feature)
const_iterator begin( size_type n ) const;
(C++11 feature)
const_iterator cbegin( size_type n ) const;
(C++11 feature)

Returns an iterator to the first element of the bucket with index pos.

Contents

[edit] Parameters

n - the index of the bucket to access

[edit] Return value

iterator to the first element

[edit] Complexity

Constant

[edit] See also

end(int)
cend(int)
returns an iterator to the end of the specified bucket
(public member function)