cppreference.com
Search
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
View
Edit
History
Actions
std::unordered_map<Key,T,Hash,KeyEqual,Allocator>::
key_eq
From cppreference.com
<
cpp
|
container
|
unordered map
[edit template]
C++
Language
Standard Library Headers
Freestanding and hosted implementations
Named requirements
Language support library
Concepts library
(C++20)
Diagnostics library
Utilities library
Strings library
Containers library
Iterators library
Ranges library
(C++20)
Algorithms library
Numerics library
Input/output library
Localizations library
Regular expressions library
(C++11)
Atomic operations library
(C++11)
Thread support library
(C++11)
Filesystem library
(C++17)
Technical Specifications
[edit]
Containers library
array
(C++11)
vector
deque
forward_list
(C++11)
list
set
multiset
map
multimap
unordered_set
(C++11)
unordered_multiset
(C++11)
unordered_map
(C++11)
unordered_multimap
(C++11)
stack
queue
priority_queue
span
(C++20)
[edit]
std::unordered_map
Member functions
unordered_map::unordered_map
unordered_map::~unordered_map
unordered_map::operator=
unordered_map::get_allocator
Iterators
unordered_map::begin
unordered_map::cbegin
unordered_map::end
unordered_map::cend
Capacity
unordered_map::empty
unordered_map::size
unordered_map::max_size
Modifiers
unordered_map::clear
unordered_map::insert
unordered_map::insert_or_assign
(C++17)
unordered_map::emplace
unordered_map::emplace_hint
unordered_map::try_emplace
(C++17)
unordered_map::erase
unordered_map::swap
unordered_map::extract
(C++17)
unordered_map::merge
(C++17)
Lookup
unordered_map::at
unordered_map::operator[]
unordered_map::count
unordered_map::find
unordered_map::contains
(C++20)
unordered_map::equal_range
Bucket interface
unordered_map::begin
(size_type)
unordered_map::cbegin
(size_type)
unordered_map::end
(size_type)
unordered_map::cend
(size_type)
unordered_map::bucket_count
unordered_map::max_bucket_count
unordered_map::bucket_size
unordered_map::bucket
Hash policy
unordered_map::load_factor
unordered_map::max_load_factor
unordered_map::rehash
unordered_map::reserve
Observers
unordered_map::hash_function
unordered_map::key_eq
Deduction guides
(C++17)
[edit]
key_equal key_eq
(
)
const
;
(since C++11)
Returns the function that compares keys for equality.
Contents
1
Parameters
2
Return value
3
Complexity
4
See also
[
edit
]
Parameters
(none)
[
edit
]
Return value
The key comparison function.
[
edit
]
Complexity
Constant.
[
edit
]
See also
hash_function
returns function used to hash the keys
(public member function)
[edit]