std::unordered_map end( size_type ) method
- since C++11
// Non const version
local_iterator end( size_type n );
// Const version
const_local_iterator end( size_type n ) const;
// Const version
const_local_iterator cend( size_type n ) const;
Returns an iterator to the element following the last element of the bucket with index n
.
Placeholder
This element acts as a placeholder, attempting to access it results in undefined behavior.
Parameters
n
- the index of the bucket to access
Return value
Iterator to the element following the last element.
Complexity
Constant - O(1).
Exceptions
(none)
Examples
important
This section requires improvement. You can help by editing this doc page.
This article originates from this CppReference page. It was likely altered for improvements or editors' preference. Click "Edit this page" to see all changes made to this document.
Hover to see the original license.
Hover to see the original license.