std::unordered_set
From cppreference.com
Defined in header <unordered_set>
|
||
template< class Key, |
(since C++11) | |
Unordered set is an associative container that contains set of unique objects of type Key. Search, insertion, and removal have average constant-time complexity.
std::unordered_set
meets the requirements of Template:concept, Template:concept, Template:concept.
Contents |
Member types
Member functions
Non-member functions
Notes
The member types iterator
and const_iterator
may be aliases to the same type. This means defining a pair of function overloads using the two types as parameter types may violate the One Definition Rule. Since iterator
is convertible to const_iterator
, a single function with a const_iterator
as parameter type will work instead.