You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> This API is obsolete. The alternative is [unordered_map Class](../standard-library/unordered-map-class.md).
@@ -21,17 +23,17 @@ void swap(
21
23
22
24
### Parameters
23
25
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`*.
26
28
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`*.
29
31
30
32
### Remarks
31
33
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.
33
35
34
-
## <a name="swap"></a> swap
36
+
## <a name="swap"></a> `swap`
35
37
36
38
> [!NOTE]
37
39
> This API is obsolete. The alternative is [unordered_multimap Class](../standard-library/unordered-multimap-class.md).
@@ -46,16 +48,16 @@ void swap(
46
48
47
49
### Parameters
48
50
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`*.
51
53
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`*.
54
56
55
57
### Remarks
56
58
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.
0 commit comments