Skip to content

Commit 186e582

Browse files
TylerMSFTTylerMSFT
authored andcommitted
add code escapes
1 parent bd214d6 commit 186e582

4 files changed

Lines changed: 298 additions & 302 deletions

File tree

‎docs/overview/whats-new-cpp-docs.md‎

Lines changed: 52 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ This article lists some of the major changes to docs for the current release.
3434

3535
### Updated articles
3636

37-
- [qsort](../c-runtime-library/reference/qsort.md) - Added note about stability
38-
- [_cwait](../c-runtime-library/reference/cwait.md) - Fixed code example
37+
- [`qsort`](../c-runtime-library/reference/qsort.md) - Added note about stability
38+
- [`_cwait`](../c-runtime-library/reference/cwait.md) - Fixed code example
3939
- [Function family overview](../c-runtime-library/function-family-overviews.md) - Added operator `new` and `delete`
40-
- [round, roundf, roundl](../c-runtime-library/reference/round-roundf-roundl.md) - Clarified rounding code example
40+
- [`round, roundf, roundl`](../c-runtime-library/reference/round-roundf-roundl.md) - Clarified rounding code example
4141
- [Compatibility](../c-runtime-library/compatibility.md) - Added C99 conformance notes
42-
- [realloc](../c-runtime-library/reference/realloc.md) - Added C99 conformance notes
42+
- [`realloc`](../c-runtime-library/reference/realloc.md) - Added C99 conformance notes
4343
- [CRT Library Features](../c-runtime-library/crt-library-features.md) - Added C99 conformance notes
44-
- [assert Macro, _assert, _wassert](../c-runtime-library/reference/assert-macro-assert-wassert.md) - Clarified assert behavior
45-
- [vsnprintf_s, _vsnprintf_s, _vsnprintf_s_l, _vsnwprintf_s, _vsnwprintf_s_l](../c-runtime-library/reference/vsnprintf-s-vsnprintf-s-vsnprintf-s-l-vsnwprintf-s-vsnwprintf-s-l.md) - Clarified return values
46-
- [setlocale, _wsetlocale](../c-runtime-library/reference/setlocale-wsetlocale.md) - Added C Runtime UTF-8 support info
44+
- [`assert Macro, _assert, _wassert`](../c-runtime-library/reference/assert-macro-assert-wassert.md) - Clarified assert behavior
45+
- [`vsnprintf_s, _vsnprintf_s, _vsnprintf_s_l, _vsnwprintf_s, _vsnwprintf_s_l`](../c-runtime-library/reference/vsnprintf-s-vsnprintf-s-vsnprintf-s-l-vsnwprintf-s-vsnwprintf-s-l.md) - Clarified return values
46+
- [`setlocale, _wsetlocale`](../c-runtime-library/reference/setlocale-wsetlocale.md) - Added C Runtime UTF-8 support info
4747

4848
## C/C++ preprocessor reference
4949

@@ -66,36 +66,35 @@ This article lists some of the major changes to docs for the current release.
6666

6767
### Updated articles
6868

69-
- [C6262](../code-quality/c6262.md) - Address cpp-docs.zh-tw issue 20
70-
- [C26497 USE_CONSTEXPR_FOR_FUNCTION](../code-quality/c26497.md) - Add example to C26497
71-
- [C26496 USE_CONST_FOR_VARIABLE](../code-quality/c26496.md) - Add example to C26496
72-
- [C26495 MEMBER_UNINIT](../code-quality/c26495.md) - Update examples and links in C26495
73-
- [C26483 STATIC_INDEX_OUT_OF_RANGE](../code-quality/c26483.md) - Add example to C26483
74-
- [C26462 USE_CONST_POINTER_FOR_VARIABLE](../code-quality/c26462.md) - Add description and example to C26462
75-
- [C26461 USE_CONST_POINTER_ARGUMENTS:](../code-quality/c26461.md) - Add description and example to C26461
76-
- [C26460 USE_CONST_REFERENCE_ARGUMENTS](../code-quality/c26460.md) - Add description and example to C26460
77-
- [C26440 DECLARE_NOEXCEPT](../code-quality/c26440.md) - Add example and link to Core Guidelines for C26440
78-
- [C26439 SPECIAL_NOEXCEPT](../code-quality/c26439.md) - Add example and link to Core Guidelines for C26439
79-
- [C26436 NEED_VIRTUAL_DTOR](../code-quality/c26436.md) - Add example and Core Guidelines link to C26436
80-
- [C26408 NO_MALLOC_FREE](../code-quality/c26408.md) - Add example and Core Guidelines link to C26408
81-
- [C26401 DONT_DELETE_NON_OWNER](../code-quality/c26401.md) - Add example and Core Guidelines link to C26401
82-
- [C26494 VAR_USE_BEFORE_INIT](../code-quality/c26494.md) - Add example to C26494
83-
- [C26493 NO_CSTYLE_CAST](../code-quality/c26493.md) - Add example to C26493
84-
- [C26492 NO_CONST_CAST](../code-quality/c26492.md) - Add example to C26492
85-
- [C26490 NO_REINTERPRET_CAST](../code-quality/c26490.md) - Add example to C26490
86-
- [C26482 NO_DYNAMIC_ARRAY_INDEXING](../code-quality/c26482.md) - Add example to C26482
87-
- [C26471 NO_REINTERPRET_CAST_FROM_VOID_PTR](../code-quality/c26471.md) - Add Example to C26471
88-
- [C26466 NO_STATIC_DOWNCAST_POLYMORPHIC](../code-quality/c26466.md) - Add Example to C26466
89-
- [C26465 NO_CONST_CAST_UNNECESSARY](../code-quality/c26465.md) - Add example to C26465
90-
- [C26447 DONT_THROW_IN_NOEXCEPT](../code-quality/c26447.md) - Adding example to C26447
91-
- [C26446 USE_GSL_AT](../code-quality/c26446.md) - Add an example for C26446
92-
- [C26434 DONT_HIDE_METHODS](../code-quality/c26434.md) - Add example for C26434
93-
- [C26432 DEFINE_OR_DELETE_SPECIAL_OPS](../code-quality/c26432.md) - Add example for C26432
94-
- [C26402 DONT_HEAP_ALLOCATE_MOVABLE_RESULT](../code-quality/c26402.md) - Add example for C26402
95-
- [C26409 NO_NEW_DELETE](../code-quality/c26409.md) - Add example for C26409
96-
- [C26498 USE_CONSTEXPR_FOR_FUNCTIONCALL](../code-quality/c26498.md) - C26498 - Description & Examples
97-
- [C26474 NO_IMPLICIT_CAST](../code-quality/c26474.md) - Update C26474 to clarify base/derived use cases.
98-
69+
- [`C6262`](../code-quality/c6262.md) - Address cpp-docs.zh-tw issue 20
70+
- [`C26497 USE_CONSTEXPR_FOR_FUNCTION`](../code-quality/c26497.md) - Add example to C26497
71+
- [`C26496 USE_CONST_FOR_VARIABLE`](../code-quality/c26496.md) - Add example to C26496
72+
- [`C26495 MEMBER_UNINIT`](../code-quality/c26495.md) - Update examples and links in C26495
73+
- [`C26483 STATIC_INDEX_OUT_OF_RANGE`](../code-quality/c26483.md) - Add example to C26483
74+
- [`C26462 USE_CONST_POINTER_FOR_VARIABLE`](../code-quality/c26462.md) - Add description and example to C26462
75+
- [`C26461 USE_CONST_POINTER_ARGUMENTS:`](../code-quality/c26461.md) - Add description and example to C26461
76+
- [`C26460 USE_CONST_REFERENCE_ARGUMENTS`](../code-quality/c26460.md) - Add description and example to C26460
77+
- [`C26440 DECLARE_NOEXCEPT`](../code-quality/c26440.md) - Add example and link to Core Guidelines for C26440
78+
- [`C26439 SPECIAL_NOEXCEPT`](../code-quality/c26439.md) - Add example and link to Core Guidelines for C26439
79+
- [`C26436 NEED_VIRTUAL_DTOR`](../code-quality/c26436.md) - Add example and Core Guidelines link to C26436
80+
- [`C26408 NO_MALLOC_FREE`](../code-quality/c26408.md) - Add example and Core Guidelines link to C26408
81+
- [`C26401 DONT_DELETE_NON_OWNER`](../code-quality/c26401.md) - Add example and Core Guidelines link to C26401
82+
- [`C26494 VAR_USE_BEFORE_INIT`](../code-quality/c26494.md) - Add example to C26494
83+
- [`C26493 NO_CSTYLE_CAST`](../code-quality/c26493.md) - Add example to C26493
84+
- [`C26492 NO_CONST_CAST`](../code-quality/c26492.md) - Add example to C26492
85+
- [`C26490 NO_REINTERPRET_CAST`](../code-quality/c26490.md) - Add example to C26490
86+
- [`C26482 NO_DYNAMIC_ARRAY_INDEXING`](../code-quality/c26482.md) - Add example to C26482
87+
- [`C26471 NO_REINTERPRET_CAST_FROM_VOID_PTR`](../code-quality/c26471.md) - Add Example to C26471
88+
- [`C26466 NO_STATIC_DOWNCAST_POLYMORPHIC`](../code-quality/c26466.md) - Add Example to C26466
89+
- [`C26465 NO_CONST_CAST_UNNECESSARY`](../code-quality/c26465.md) - Add example to C26465
90+
- [`C26447 DONT_THROW_IN_NOEXCEPT`](../code-quality/c26447.md) - Adding example to C26447
91+
- [`C26446 USE_GSL_AT`](../code-quality/c26446.md) - Add an example for C26446
92+
- [`C26434 DONT_HIDE_METHODS`](../code-quality/c26434.md) - Add example for C26434
93+
- [`C26432 DEFINE_OR_DELETE_SPECIAL_OPS`](../code-quality/c26432.md) - Add example for C26432
94+
- [`C26402 DONT_HEAP_ALLOCATE_MOVABLE_RESULT`](../code-quality/c26402.md) - Add example for C26402
95+
- [`C26409 NO_NEW_DELETE`](../code-quality/c26409.md) - Add example for C26409
96+
- [`C26498 USE_CONSTEXPR_FOR_FUNCTIONCALL`](../code-quality/c26498.md) - C26498 - Description & Examples
97+
- [`C26474 NO_IMPLICIT_CAST`](../code-quality/c26474.md) - Update C26474 to clarify base/derived cases
9998
## Linux with Microsoft C++ in Visual Studio
10099

101100
### New articles
@@ -155,11 +154,11 @@ This article lists some of the major changes to docs for the current release.
155154
-
156155
### Updated articles
157156

158-
- [/permissive- (Standards conformance)](../build/reference/permissive-standards-conformance.md) - Update to 16.8 release notes
157+
- [`/permissive-` (Standards conformance)](../build/reference/permissive-standards-conformance.md) - Update to 16.8 release notes
159158
- [`/clr` (Common Language Runtime Compilation)](../build/reference/clr-common-language-runtime-compilation.md) - add description for `/clr`
160159
- [pgosweep](../build/pgosweep.md) - Add more pgosweep options
161160
- [C/C++ projects and build systems in Visual Studio](../build/projects-and-build-systems-cpp.md)
162-
- [/sdl (Enable Additional Security Checks)](../build/reference/sdl-enable-additional-security-checks.md) - Fix issues identified in PR 3173
161+
- [`/sdl` (Enable Additional Security Checks)](../build/reference/sdl-enable-additional-security-checks.md) - Fix issues identified in PR 3173
163162
- [Importing data using `__declspec(dllimport)`](../build/importing-data-using-declspec-dllimport.md) - Updated example
164163
## Microsoft C++ porting and upgrade guide
165164

@@ -171,25 +170,25 @@ This article lists some of the major changes to docs for the current release.
171170

172171
### New articles
173172

174-
- [<bit>](../standard-library/bit.md)
175-
- [<bit> functions](../standard-library/bit-functions.md)
176-
- [endian enum](../standard-library/bit-enum.md)
173+
- [`<bit>`](../standard-library/bit.md)
174+
- [`<bit>` functions](../standard-library/bit-functions.md)
175+
- [`endian` enum](../standard-library/bit-enum.md)
177176

178177
### Updated articles
179178

180179
- [`<ios>` typedefs](../standard-library/ios-typedefs.md) - update example per GitHub #2514
181180
- [`basic_string` Class](../standard-library/basic-string-class.md) - added `startswith()`, `endswith()`
182-
- [ios_base Class](../standard-library/ios-base-class.md)
183-
- [map Class](../standard-library/map-class.md)
184-
- [multimap Class](../standard-library/multimap-class.md) - add contains()
185-
- [multiset Class](../standard-library/multiset-class.md) - add contains()
186-
- [set Class](../standard-library/set-class.md) - add contains()
187-
- [unordered_map Class](../standard-library/unordered-map-class.md) - add contains()
188-
- [unordered_multimap Class](../standard-library/unordered-multimap-class.md) - add contains()
189-
- [unordered_multiset Class](../standard-library/unordered-multiset-class.md) - add contains()
190-
- [unordered_set Class](../standard-library/unordered-set-class.md) - add contains()
191-
- [basic_string_view Class](../standard-library/basic-string-view-class.md) - added `startswith()`, `endswith()`
192-
- [<bit> functions](../standard-library/bit-functions.md) - update nodiscard syntax
181+
- [`ios_base Class`](../standard-library/ios-base-class.md)
182+
- [`map` class](../standard-library/map-class.md)
183+
- [`multimap` Class](../standard-library/multimap-class.md) - add contains()
184+
- [`multiset` Class](../standard-library/multiset-class.md) - add contains()
185+
- [`set` Class](../standard-library/set-class.md) - add contains()
186+
- [`unordered_map` Class](../standard-library/unordered-map-class.md) - add contains()
187+
- [`unordered_multimap` Class](../standard-library/unordered-multimap-class.md) - add contains()
188+
- [`unordered_multiset` Class](../standard-library/unordered-multiset-class.md) - add contains()
189+
- [`unordered_set` Class](../standard-library/unordered-set-class.md) - add contains()
190+
- [`basic_string_view` Class](../standard-library/basic-string-view-class.md) - added `startswith()`, `endswith()`
191+
- [`<bit>` functions](../standard-library/bit-functions.md) - update nodiscard syntax
193192

194193
## Community contributors
195194

‎docs/standard-library/map-class.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ description: "API reference for the C++ Standard Template Library (STL) `map` cl
44
ms.date: "9/10/2020"
55
f1_keywords: ["map/std::map", "map/std::map::allocator_type", "map/std::map::const_iterator", "map/std::map::const_pointer", "map/std::map::const_reference", "map/std::map::const_reverse_iterator", "map/std::map::difference_type", "map/std::map::iterator", "map/std::map::key_compare", "map/std::map::key_type", "map/std::map::mapped_type", "map/std::map::pointer", "map/std::map::reference", "map/std::map::reverse_iterator", "map/std::map::size_type", "map/std::map::value_type", "map/std::map::at", "map/std::map::begin", "map/std::map::cbegin", "map/std::map::cend", "map/std::map::clear", "map/std::map::count", "map/std::map::contains", "map/std::map::crbegin", "map/std::map::crend", "map/std::map::emplace", "map/std::map::emplace_hint", "map/std::map::empty", "map/std::map::end", "map/std::map::equal_range", "map/std::map::erase", "map/std::map::find", "map/std::map::get_allocator", "map/std::map::insert", "map/std::map::key_comp", "map/std::map::lower_bound", "map/std::map::max_size", "map/std::map::rbegin", "map/std::map::rend", "map/std::map::size", "map/std::map::swap", "map/std::map::upper_bound", "map/std::map::value_comp"]
66
helpviewer_keywords: ["std::map [C++]", "std::map [C++], allocator_type", "std::map [C++], const_iterator", "std::map [C++], const_pointer", "std::map [C++], const_reference", "std::map [C++], const_reverse_iterator", "std::map [C++], difference_type", "std::map [C++], iterator", "std::map [C++], key_compare", "std::map [C++], key_type", "std::map [C++], mapped_type", "std::map [C++], pointer", "std::map [C++], reference", "std::map [C++], reverse_iterator", "std::map [C++], size_type", "std::map [C++], value_type", "std::map [C++], at", "std::map [C++], begin", "std::map [C++], cbegin", "std::map [C++], cend", "std::map [C++], clear", "std::map [C++], count", "std::map [C++], contains", "std::map [C++], crbegin", "std::map [C++], crend", "std::map [C++], emplace", "std::map [C++], emplace_hint", "std::map [C++], empty", "std::map [C++], end", "std::map [C++], equal_range", "std::map [C++], erase", "std::map [C++], find", "std::map [C++], get_allocator", "std::map [C++], insert", "std::map [C++], key_comp", "std::map [C++], lower_bound", "std::map [C++], max_size", "std::map [C++], rbegin", "std::map [C++], rend", "std::map [C++], size", "std::map [C++], swap", "std::map [C++], upper_bound", "std::map [C++], value_comp"]
7-
ms.assetid: 7876f4c9-ebb4-4878-af1e-09364c43af0a
87
---
9-
# map Class
8+
# `map` Class
109

1110
Used for the storage and retrieval of data from a collection in which each element is a pair that has both a data value and a sort key. The value of the key is unique and is used to automatically sort the data.
1211

‎docs/standard-library/multimap-class.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ description: "API reference for the C++ Standard Template Library (STL) `multima
44
ms.date: "9/9/2020"
55
f1_keywords: ["map/std::multimap", "map/std::multimap::allocator_type", "map/std::multimap::const_iterator", "map/std::multimap::const_pointer", "map/std::multimap::const_reference", "map/std::multimap::const_reverse_iterator", "map/std::multimap::difference_type", "map/std::multimap::iterator", "map/std::multimap::key_compare", "map/std::multimap::key_type", "map/std::multimap::mapped_type", "map/std::multimap::pointer", "map/std::multimap::reference", "map/std::multimap::reverse_iterator", "map/std::multimap::size_type", "map/std::multimap::value_type", "map/std::multimap::begin", "map/std::multimap::cbegin", "map/std::multimap::cend", "map/std::multimap::clear", "map/std::multimap::contains", "map/std::multimap::count", "map/std::multimap::crbegin", "map/std::multimap::crend", "map/std::multimap::emplace", "map/std::multimap::emplace_hint", "map/std::multimap::empty", "map/std::multimap::end", "map/std::multimap::equal_range", "map/std::multimap::erase", "map/std::multimap::find", "map/std::multimap::get_allocator", "map/std::multimap::insert", "map/std::multimap::key_comp", "map/std::multimap::lower_bound", "map/std::multimap::max_size", "map/std::multimap::rbegin", "map/std::multimap::rend", "map/std::multimap::size", "map/std::multimap::swap", "map/std::multimap::upper_bound", "map/std::multimap::value_comp"]
66
helpviewer_keywords: ["std::multimap [C++]", "std::multimap [C++], allocator_type", "std::multimap [C++], const_iterator", "std::multimap [C++], const_pointer", "std::multimap [C++], const_reference", "std::multimap [C++], const_reverse_iterator", "std::multimap [C++], difference_type", "std::multimap [C++], iterator", "std::multimap [C++], key_compare", "std::multimap [C++], key_type", "std::multimap [C++], mapped_type", "std::multimap [C++], pointer", "std::multimap [C++], reference", "std::multimap [C++], reverse_iterator", "std::multimap [C++], size_type", "std::multimap [C++], value_type", "std::multimap [C++], begin", "std::multimap [C++], cbegin", "std::multimap [C++], cend", "std::multimap [C++], clear", "std::multimap [C++], contains", "std::multimap [C++], count", "std::multimap [C++], crbegin", "std::multimap [C++], crend", "std::multimap [C++], emplace", "std::multimap [C++], emplace_hint", "std::multimap [C++], empty", "std::multimap [C++], end", "std::multimap [C++], equal_range", "std::multimap [C++], erase", "std::multimap [C++], find", "std::multimap [C++], get_allocator", "std::multimap [C++], insert", "std::multimap [C++], key_comp", "std::multimap [C++], lower_bound", "std::multimap [C++], max_size", "std::multimap [C++], rbegin", "std::multimap [C++], rend", "std::multimap [C++], size", "std::multimap [C++], swap", "std::multimap [C++], upper_bound", "std::multimap [C++], value_comp"]
7-
ms.assetid: 8796ae05-37c4-475a-9e61-75fde9d4a463
87
---
9-
# multimap Class
8+
# `multimap` Class
109

1110
The C++ Standard Library multimap class is used for the storage and retrieval of data from a collection in which each element is a pair that has both a data value and a sort key. The value of the key doesn't need to be unique and is used to order the data automatically. The value of an element in a multimap, but not its associated key value, may be changed directly. Instead, key values associated with old elements must be deleted and new key values associated with new elements inserted.
1211

0 commit comments

Comments
 (0)