Skip to content

Commit 0c929e0

Browse files
authored
Add backticks in value_compare class reference
1 parent 0d52b22 commit 0c929e0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/standard-library/value-compare-class.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ f1_keywords: ["hash_map/std::value_compare"]
66
helpviewer_keywords: ["value_compare class"]
77
ms.assetid: c306c5b9-3505-4357-aa6b-216451b951ed
88
---
9-
# value_compare Class
9+
# `value_compare` Class
1010

11-
Provides a function object that can compare the elements of a hash_map by comparing the values of their keys to determine their relative order in the hash_map.
11+
Provides a function object that can compare the elements of a `hash_map` by comparing the values of their keys to determine their relative order in the `hash_map`.
1212

1313
## Syntax
1414

@@ -32,22 +32,22 @@ protected:
3232

3333
## Remarks
3434

35-
The comparison criteria provided by value_compare between `value_types` of whole elements contained by a hash_map is induced from a comparison between the keys of the respective elements by the auxiliary class construction. The member function operator uses the object `comp` of type `key_compare` stored in the function object provided by value_compare to compare the sort-key components of two elements.
35+
The comparison criteria provided by `value_compare` between `value_types` of whole elements contained by a `hash_map` is induced from a comparison between the keys of the respective elements by the auxiliary class construction. The member function operator uses the object `comp` of type `key_compare` stored in the function object provided by `value_compare` to compare the sort-key components of two elements.
3636

37-
For hash_sets and hash_multisets, which are simple containers where the key values are identical to the element values, value_compare is equivalent to `key_compare`; for hash_maps and hash_multimaps they are not, because the value of the type `pair` elements is not identical to the value of the element's key.
37+
For `hash_set`s and `hash_multiset`s, which are simple containers where the key values are identical to the element values, `value_compare` is equivalent to `key_compare`; for `hash_map`s and `hash_multimap`s they are not, because the value of the type `pair` elements is not identical to the value of the element's key.
3838

3939
## Example
4040

41-
See the example for [hash_map::value_comp](../standard-library/hash-map-class.md#value_comp) for an example of how to declare and use value_compare.
41+
See the example for [`hash_map::value_comp`](../standard-library/hash-map-class.md#value_comp) for an example of how to declare and use `value_compare`.
4242

4343
## Requirements
4444

45-
**Header:** \<hash_map>
45+
**Header:** `<hash_map>`
4646

47-
**Namespace:** stdext
47+
**Namespace:** `stdext`
4848

4949
## See also
5050

51-
[binary_function Struct](../standard-library/binary-function-struct.md)\
51+
[`binary_function` Struct](../standard-library/binary-function-struct.md)\
5252
[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md)\
5353
[C++ Standard Library Reference](../standard-library/cpp-standard-library-reference.md)

0 commit comments

Comments
 (0)