Skip to content

Commit cf131d2

Browse files
authored
Update hash-map-functions.md
1 parent ec5b7f9 commit cf131d2

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

docs/standard-library/hash-map-functions.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ f1_keywords: ["hash_map/std::swap", "hash_map/std::swap (hash_map)"]
66
---
77
# `<hash_map>` functions
88

9-
## <a name="swap_hash_map"></a> swap (hash_map)
9+
The `<hash_map>` header provides the following functions:
10+
11+
## <a name="swap_hash_map"></a> `swap` (`hash_map`)
1012

1113
> [!NOTE]
1214
> This API is obsolete. The alternative is [unordered_map Class](../standard-library/unordered-map-class.md).
@@ -21,17 +23,17 @@ void swap(
2123
2224
### Parameters
2325
24-
*right*\
25-
The hash_map whose elements are to be exchanged with those of the map *left*.
26+
*`right`*\
27+
The hash_map whose elements are to be exchanged with those of the map *`left`*.
2628
27-
*left*\
28-
The hash_map whose elements are to be exchanged with those of the map *right*.
29+
*`left`*\
30+
The hash_map whose elements are to be exchanged with those of the map *`right`*.
2931
3032
### Remarks
3133
32-
The template function is an algorithm specialized on the container class hash_map to execute the member function `left.`[swap](../standard-library/basic-ios-class.md#swap)*(right*). This is an instance of the partial ordering of function templates by the compiler. When template functions are overloaded in such a way that the match of the template with the function call is not unique, then the compiler will select the most specialized version of the template function. The general version of the template function, **template \<class T> void swap(T&, T&)**, in the algorithm header file works by assignment and is a slow operation. The specialized version in each container is much faster as it can work with the internal representation of the container class.
34+
The template function is an algorithm specialized on the container class hash_map to execute the member function `left.`[`swap`](../standard-library/basic-ios-class.md#swap)(`right`). This is an instance of the partial ordering of function templates by the compiler. When template functions are overloaded in such a way that the match of the template with the function call is not unique, then the compiler will select the most specialized version of the template function. The general version of the template function, **`template <class T> void swap(T&, T&)`**, in the algorithm header file works by assignment and is a slow operation. The specialized version in each container is much faster as it can work with the internal representation of the container class.
3335
34-
## <a name="swap"></a> swap
36+
## <a name="swap"></a> `swap`
3537
3638
> [!NOTE]
3739
> This API is obsolete. The alternative is [unordered_multimap Class](../standard-library/unordered-multimap-class.md).
@@ -46,16 +48,16 @@ void swap(
4648

4749
### Parameters
4850

49-
*right*\
50-
The hash_multimap whose elements are to be exchanged with those of the map *left*.
51+
*`right`*\
52+
The `hash_multimap` whose elements are to be exchanged with those of the map *`left`*.
5153

52-
*left*\
53-
The hash_multimap whose elements are to be exchanged with those of the map *right*.
54+
*`left`*\
55+
The `hash_multimap` whose elements are to be exchanged with those of the map *`right`*.
5456

5557
### Remarks
5658

57-
The template function is an algorithm specialized on the container class hash_multimap to execute the member function `left.`[swap](../standard-library/hash-multimap-class.md#swap)*(right*`)`. This is an instance of the partial ordering of function templates by the compiler. When template functions are overloaded in such a way that the match of the template with the function call is not unique, then the compiler will select the most specialized version of the template function. The general version of the template function, **template \<class T> void swap(T&, T&)**, in the algorithm header file works by assignment and is a slow operation. The specialized version in each container is much faster as it can work with the internal representation of the container class.
59+
The template function is an algorithm specialized on the container class hash_multimap to execute the member function `left.`[`swap`](../standard-library/hash-multimap-class.md#swap)(`right`). This is an instance of the partial ordering of function templates by the compiler. When template functions are overloaded in such a way that the match of the template with the function call is not unique, then the compiler will select the most specialized version of the template function. The general version of the template function, **`template <class T> void swap(T&, T&)`**, in the algorithm header file works by assignment and is a slow operation. The specialized version in each container is much faster as it can work with the internal representation of the container class.
5860

5961
## See also
6062

61-
[<hash_map>](../standard-library/hash-map.md)
63+
[`<hash_map>`](../standard-library/hash-map.md)

0 commit comments

Comments
 (0)