Skip to content

Commit ff51d2b

Browse files
authored
Merge pull request #5420 from Rageking8/elide-more-manual-table-of-contents
Elide more manual table of contents
2 parents 6271787 + 30839ff commit ff51d2b

File tree

5 files changed

+90
-120
lines changed

5 files changed

+90
-120
lines changed

docs/standard-library/allocators-operators.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
---
2-
description: "Learn more about: <allocators> operators"
32
title: "<allocators> operators"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: <allocators> operators"
4+
ms.date: 11/04/2016
55
f1_keywords: ["allocators/std::operator!=", "allocators/std::operator=="]
6-
ms.assetid: b55d67cb-3c69-46bf-ad40-e845fb096c4e
76
---
87
# `<allocators>` operators
98

109
These are the global template operator functions defined in `<allocators>`. For class member operator functions, see the class documentation.
1110

12-
[operator!=](#op_neq)\
13-
[operator==](#op_eq_eq)
14-
15-
## <a name="op_neq"></a> operator!=
11+
## <a name="op_neq"></a> `operator!=`
1612

1713
Tests for inequality between allocator objects of a specified class.
1814

@@ -25,10 +21,10 @@ bool operator!=(
2521
2622
### Parameters
2723
28-
*left*\
24+
*`left`*\
2925
One of the allocator objects to be tested for inequality.
3026
31-
*right*\
27+
*`right`*\
3228
One of the allocator objects to be tested for inequality.
3329
3430
### Return Value
@@ -39,7 +35,7 @@ One of the allocator objects to be tested for inequality.
3935
4036
The template operator returns `!(left == right)`.
4137
42-
## <a name="op_eq_eq"></a> operator==
38+
## <a name="op_eq_eq"></a> `operator==`
4339
4440
Tests for equality between allocator objects of a specified class.
4541
@@ -52,10 +48,10 @@ bool operator==(
5248

5349
### Parameters
5450

55-
*left*\
51+
*`left`*\
5652
One of the allocator objects to be tested for equality.
5753

58-
*right*\
54+
*`right`*\
5955
One of the allocator objects to be tested for equality.
6056

6157
### Return Value
@@ -68,4 +64,4 @@ This template operator returns `left.equals(right)`.
6864

6965
## See also
7066

71-
[\<allocators>](allocators-header.md)
67+
[`<allocators>`](allocators-header.md)

docs/standard-library/array-functions.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
---
2-
description: "Learn more about: <array> functions"
32
title: "<array> functions"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: <array> functions"
4+
ms.date: 11/04/2016
55
f1_keywords: ["array/std::array::get", "array/std::get", "array/std::swap"]
6-
ms.assetid: e0700a33-a833-4655-8735-16e71175efc8
76
helpviewer_keywords: ["std::array [C++], get", "std::get [C++]", "std::swap [C++]"]
87
---
98
# `<array>` functions
109

11-
The \<array> header includes two non-member functions, `get` and `swap`, that operate on **array** objects.
12-
13-
[get](#get)\
14-
[swap](#swap)
10+
The `<array>` header includes two non-member functions, `get` and `swap`, that operate on **array** objects.
1511

16-
## <a name="get"></a> get
12+
## <a name="get"></a> `get`
1713

1814
Returns a reference to the specified element of the array.
1915

@@ -30,16 +26,16 @@ constexpr T&& get(array<T, N>&& arr) noexcept;
3026
3127
### Parameters
3228
33-
*Index*\
29+
*`Index`*\
3430
The element offset.
3531
36-
*T*\
32+
*`T`*\
3733
The type of an element.
3834
39-
*N*\
35+
*`N`*\
4036
The number of elements in the array.
4137
42-
*arr*\
38+
*`arr`*\
4339
The array to select from.
4440
4541
### Example
@@ -74,7 +70,7 @@ int main()
7470
1 3
7571
```
7672

77-
## <a name="swap"></a> swap
73+
## <a name="swap"></a> `swap`
7874

7975
A non-member template specialization of `std::swap` that swaps two **array** objects.
8076

@@ -85,16 +81,16 @@ void swap(array<Ty, N>& left, array<Ty, N>& right);
8581
8682
### Parameters
8783
88-
*Ty*\
84+
*`Ty`*\
8985
The type of an element.
9086
91-
*N*\
87+
*`N`*\
9288
The size of the array.
9389
94-
*left*\
90+
*`left`*\
9591
The first array to swap.
9692
97-
*right*\
93+
*`right`*\
9894
The second array to swap.
9995
10096
### Remarks
@@ -149,4 +145,4 @@ int main()
149145

150146
## See also
151147

152-
[\<array>](../standard-library/array.md)
148+
[`<array>`](../standard-library/array.md)

docs/standard-library/array-operators.md

Lines changed: 28 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,9 @@ f1_keywords: ["array/std::array::operator!=", "array/std::array::operator<", "ar
66
---
77
# `<array>` operators
88

9-
The \<array> header includes these **array** non-member comparison template functions.
9+
The `<array>` header includes these **array** non-member comparison template functions.
1010

11-
[operator!=](#op_neq)\
12-
[`operator>`](#op_gt)\
13-
[`operator>=`](#op_gt_eq)\
14-
[`operator<`](#op_lt)\
15-
[`operator<=`](#op_lt_eq)\
16-
[operator==](#op_eq_eq)
17-
18-
## <a name="op_neq"></a> operator!=
11+
## <a name="op_neq"></a> `operator!=`
1912

2013
Array comparison, not equal.
2114

@@ -28,16 +21,16 @@ bool operator!=(
2821

2922
### Parameters
3023

31-
*Ty*\
24+
*`Ty`*\
3225
The type of an element.
3326

34-
*N*\
27+
*`N`*\
3528
The size of the array.
3629

37-
*left*\
30+
*`left`*\
3831
Left container to compare.
3932

40-
*right*\
33+
*`right`*\
4134
Right container to compare.
4235

4336
### Remarks
@@ -101,16 +94,16 @@ bool operator<(
10194

10295
### Parameters
10396

104-
*Ty*\
97+
*`Ty`*\
10598
The type of an element.
10699

107-
*N*\
100+
*`N`*\
108101
The size of the array.
109102

110-
*left*\
103+
*`left`*\
111104
Left container to compare.
112105

113-
*right*\
106+
*`right`*\
114107
Right container to compare.
115108

116109
### Remarks
@@ -174,16 +167,16 @@ bool operator<=(
174167

175168
### Parameters
176169

177-
*Ty*\
170+
*`Ty`*\
178171
The type of an element.
179172

180-
*N*\
173+
*`N`*\
181174
The size of the array.
182175

183-
*left*\
176+
*`left`*\
184177
Left container to compare.
185178

186-
*right*\
179+
*`right`*\
187180
Right container to compare.
188181

189182
### Remarks
@@ -234,7 +227,7 @@ true
234227
false
235228
```
236229

237-
## <a name="op_eq_eq"></a> operator==
230+
## <a name="op_eq_eq"></a> `operator==`
238231

239232
Array comparison, equal.
240233

@@ -247,16 +240,16 @@ bool operator==(
247240

248241
### Parameters
249242

250-
*Ty*\
243+
*`Ty`*\
251244
The type of an element.
252245

253-
*N*\
246+
*`N`*\
254247
The size of the array.
255248

256-
*left*\
249+
*`left`*\
257250
Left container to compare.
258251

259-
*right*\
252+
*`right`*\
260253
Right container to compare.
261254

262255
### Remarks
@@ -320,16 +313,16 @@ bool operator>(
320313

321314
### Parameters
322315

323-
*Ty*\
316+
*`Ty`*\
324317
The type of an element.
325318

326-
*N*\
319+
*`N`*\
327320
The size of the array.
328321

329-
*left*\
322+
*`left`*\
330323
Left container to compare.
331324

332-
*right*\
325+
*`right`*\
333326
Right container to compare.
334327

335328
### Remarks
@@ -393,16 +386,16 @@ bool operator>=(
393386

394387
### Parameters
395388

396-
*Ty*\
389+
*`Ty`*\
397390
The type of an element.
398391

399-
*N*\
392+
*`N`*\
400393
The size of the array.
401394

402-
*left*\
395+
*`left`*\
403396
Left container to compare.
404397

405-
*right*\
398+
*`right`*\
406399
Right container to compare.
407400

408401
### Remarks
@@ -455,4 +448,4 @@ false
455448

456449
## See also
457450

458-
[\<array>](../standard-library/array.md)
451+
[`<array>`](../standard-library/array.md)

0 commit comments

Comments
 (0)