Skip to content

Commit 48a41f3

Browse files
authored
Add anchor for "Heterogeneous Lookup in Associative Containers" section
1 parent bae60e9 commit 48a41f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/standard-library/stl-containers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Both `map` and `set` only allow one instance of a key or element to be inserted
3939

4040
Ordered maps and sets support bi-directional iterators, and their unordered counterparts support forward iterators. For more information, see [Iterators](../standard-library/iterators.md).
4141

42-
### Heterogeneous Lookup in Associative Containers (C++14)
42+
### <a name="heterogeneous-lookup-in-associative-containers"></a> Heterogeneous Lookup in Associative Containers (C++14)
4343

4444
The ordered associative containers (map, multimap, set, and multiset) now support heterogeneous lookup, which means that you're no longer required to pass the exact same object type as the key or element in member functions such as `find()` and `lower_bound()`. Instead, you can pass any type for which an overloaded `operator<` is defined that enables comparison to the key type.
4545

0 commit comments

Comments
 (0)