Skip to content

Commit 75b2bf3

Browse files
committed
formatting
1 parent fc5652c commit 75b2bf3

46 files changed

Lines changed: 1499 additions & 1627 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/standard-library/array.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,28 @@ ms.workload: ["cplusplus"]
1616

1717
Defines the container template class **array** and several supporting templates.
1818

19-
## Syntax
19+
## Requirements
2020

21-
```cpp
22-
#include <array>
23-
```
21+
**Header:** \<array>
22+
23+
**Namespace:** std
2424

2525
> [!NOTE]
2626
> The \<array> library also uses the `#include <initializer_list>` statement.
2727
28+
## Members
29+
2830
### Classes
2931

30-
|Class|Description|
32+
|||
3133
|-|-|
3234
|[array](../standard-library/array-class-stl.md)|Stores a fixed-length sequence of elements.|
3335
|[tuple_element](../standard-library/tuple-element-class-tuple.md)|Wraps the type of an array element.|
3436
|[tuple_size](../standard-library/tuple-size-class-tuple.md)|Wraps the size of an array element.|
3537

3638
### Operators
3739

38-
|Operator|Description|
40+
|||
3941
|-|-|
4042
|[operator==](../standard-library/array-operators.md#op_eq_eq)|array comparison, equal|
4143
|[operator!=](../standard-library/array-operators.md#op_neq)|array comparison, not equal|
@@ -46,7 +48,7 @@ Defines the container template class **array** and several supporting templates.
4648

4749
### Functions
4850

49-
|Function|Description|
51+
|||
5052
|-|-|
5153
|[get](../standard-library/array-functions.md#get)|Get specified array element.|
5254
|[swap](../standard-library/array-functions.md#swap)|Exchanges the contents of one array with the contents of another array.|

docs/standard-library/cctype.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ ms.workload: ["cplusplus"]
1616

1717
Includes the Standard C library header \<ctype.h> and adds the associated names to the `std` namespace.
1818

19-
## Syntax
19+
## Requirements
2020

21-
```cpp
22-
#include <cctype>
23-
```
21+
**Header:** \<cctype>
22+
23+
**Namespace:** std
2424

2525
## Remarks
2626

docs/standard-library/chrono-functions.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ ms.assetid: d6800e15-77a1-4df3-900e-d8b2fee190c7
88
---
99
# &lt;chrono&gt; functions
1010

11-
||||
12-
|-|-|-|
13-
|[duration_cast](#duration_cast)|[time_point_cast](#time_point_cast)|
14-
15-
## <a name="duration_cast"></a> duration_cast
11+
## <a name="duration_cast"></a> duration_cast
1612

1713
Casts a `duration` object to a specified type.
1814

@@ -36,7 +32,7 @@ A `duration` object of type `To` that represents the time interval `Dur`, which
3632
3733
If `To` is an instantiation of `duration`, this function does not participate in overload resolution.
3834
39-
## <a name="time_point_cast"></a> time_point_cast
35+
## <a name="time_point_cast"></a> time_point_cast
4036
4137
Casts a [time_point](../standard-library/time-point-class.md) object to a specified type.
4238
@@ -62,7 +58,3 @@ A `time_point` object that has a duration of type `To`.
6258
### Remarks
6359

6460
Unless `To` is an instantiation of [duration](../standard-library/duration-class.md), this function does not participate in overload resolution.
65-
66-
## See also
67-
68-
[\<chrono>](../standard-library/chrono.md)<br/>

docs/standard-library/chrono-literals.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,3 @@ constexpr auto day = 24h;
7272
constexpr auto week = 24h* 7;
7373
constexpr auto my_duration_unit = 108ms;
7474
```
75-
76-
## Requirements
77-
78-
**Header**: \<chrono>
79-
80-
**Namespace**: std::literals::chrono_literals
81-
82-
## See also
83-
84-
[\<chrono>](../standard-library/chrono.md)<br/>

docs/standard-library/chrono-operators.md

Lines changed: 41 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,7 @@ ms.assetid: c5a19267-4684-40c1-b7a9-cc1012b058f3
88
---
99
# &lt;chrono&gt; operators
1010

11-
||||
12-
|-|-|-|
13-
|[operator modulo](#op_modulo)|[operator!=](#op_neq)|[operator&gt;](#op_gt)|
14-
|[operator&gt;=](#op_gt_eq)|[operator&lt;](#op_lt)|[operator&lt;=](#op_lt_eq)|
15-
|[operator*](#op_star)|[operator+](#op_add)|[operator-](#operator-)|
16-
|[operator/](#op_div)|[operator==](#op_eq_eq)|
17-
18-
## <a name="operator-"></a> operator-
11+
## <a name="operator-"></a> operator-
1912

2013
Operator for subtraction or negation of [duration](../standard-library/duration-class.md) and [time_point](../standard-library/time-point-class.md) objects.
2114

@@ -41,16 +34,16 @@ constexpr typename common_type<Duration1, Duration2>::type
4134
4235
### Parameters
4336
44-
*Left*<br/>
37+
*Left*\
4538
The left `duration` or `time_point` object.
4639
47-
*Right*<br/>
40+
*Right*\
4841
The right `duration` or `time_point` object.
4942
50-
*Time*<br/>
43+
*Time*\
5144
A `time_point` object.
5245
53-
*Dur*<br/>
46+
*Dur*\
5447
A `duration` object.
5548
5649
### Return Value
@@ -61,7 +54,7 @@ The second function returns a `time_point` object that represents a point in tim
6154
6255
The third function returns a `duration` object that represents the time interval between *Left* and *Right*.
6356
64-
## <a name="op_neq"></a> operator!=
57+
## <a name="op_neq"></a> operator!=
6558
6659
Inequality operator for [duration](../standard-library/duration-class.md) or [time_point](../standard-library/time-point-class.md) objects.
6760
@@ -79,17 +72,17 @@ constexpr bool operator!=(
7972

8073
### Parameters
8174

82-
*Left*<br/>
75+
*Left*\
8376
The left `duration` or `time_point` object.
8477

85-
*Right*<br/>
78+
*Right*\
8679
The right `duration` or `time_point` object.
8780

8881
### Return Value
8982

9083
Each function returns `!(Left == Right)`.
9184

92-
## <a name="op_star"></a> operator*
85+
## <a name="op_star"></a> operator*
9386

9487
Multiplication operator for [duration](../standard-library/chrono-operators.md#op_star) objects.
9588

@@ -110,10 +103,10 @@ constexpr duration<typename common_type<Rep1, Rep2>::type, Period2>
110103
111104
### Parameters
112105
113-
*Dur*<br/>
106+
*Dur*\
114107
A `duration` object.
115108
116-
*Mult*<br/>
109+
*Mult*\
117110
An integral value.
118111
119112
### Return Value
@@ -124,7 +117,7 @@ Unless `is_convertible<Rep2, common_type<Rep1, Rep2>>`*holds true*, the first fu
124117
125118
Unless `is_convertible<Rep1, common_type<Rep1, Rep2>>`*holds true*, the second function does not participate in overload resolution. For more information, see [<type_traits>](../standard-library/type-traits.md).
126119
127-
## <a name="op_div"></a> operator/
120+
## <a name="op_div"></a> operator/
128121
129122
Division operator for [duration](../standard-library/chrono-operators.md#op_star) objects.
130123
@@ -144,16 +137,16 @@ constexpr typename common_type<Rep1, Rep2>::type
144137

145138
### Parameters
146139

147-
*Dur*<br/>
140+
*Dur*\
148141
A `duration` object.
149142

150-
*Div*<br/>
143+
*Div*\
151144
An integral value.
152145

153-
*Left*<br/>
146+
*Left*\
154147
The left `duration` object.
155148

156-
*Right*<br/>
149+
*Right*\
157150
The right `duration` object.
158151

159152
### Return Value
@@ -164,7 +157,7 @@ The second operator returns the ratio of the interval lengths of *Left* and *Rig
164157

165158
Unless `is_convertible<Rep2, common_type<Rep1, Rep2>>`*holds true*, and `Rep2` is not an instantiation of `duration`, the first operator does not participate in overload resolution. For more information, see [<type_traits>](../standard-library/type-traits.md).
166159

167-
## <a name="op_add"></a> operator+
160+
## <a name="op_add"></a> operator+
168161

169162
Adds [duration](../standard-library/duration-class.md) and [time_point](../standard-library/time-point-class.md) objects.
170163

@@ -190,16 +183,16 @@ time_point<Clock, constexpr typename common_type<duration<Rep1, Period1>, Durati
190183
191184
### Parameters
192185
193-
*Left*<br/>
186+
*Left*\
194187
The left `duration` or `time_point` object.
195188
196-
*Right*<br/>
189+
*Right*\
197190
The right `duration` or `time_point` object.
198191
199-
*Time*<br/>
192+
*Time*\
200193
A `time_point` object.
201194
202-
*Dur*<br/>
195+
*Dur*\
203196
A `duration` object.
204197
205198
### Return Value
@@ -208,7 +201,7 @@ The first function returns a `duration` object that has a time interval that is
208201
209202
The second and third functions return a `time_point` object that represents a point in time that is displaced, by the interval *Dur*, from the point in time *Time*.
210203
211-
## <a name="op_lt"></a> operator&lt;
204+
## <a name="op_lt"></a> operator&lt;
212205
213206
Determines whether one [duration](../standard-library/duration-class.md) or [time_point](../standard-library/time-point-class.md) object is less than another `duration` or `time_point` object.
214207
@@ -226,10 +219,10 @@ constexpr bool operator<(
226219

227220
### Parameters
228221

229-
*Left*<br/>
222+
*Left*\
230223
The left `duration` or `time_point` object.
231224

232-
*Right*<br/>
225+
*Right*\
233226
The right `duration` or `time_point` object.
234227

235228
### Return Value
@@ -238,7 +231,7 @@ The first function returns **true** if the interval length of *Left* is less tha
238231

239232
The second function returns **true** if *Left* precedes *Right*. Otherwise, the function returns **false**.
240233

241-
## <a name="op_lt_eq"></a> operator&lt;=
234+
## <a name="op_lt_eq"></a> operator&lt;=
242235

243236
Determines whether one [duration](../standard-library/duration-class.md) or [time_point](../standard-library/time-point-class.md) object is less than or equal to another `duration` or `time_point` object.
244237

@@ -256,17 +249,17 @@ constexpr bool operator<=(
256249
257250
### Parameters
258251
259-
*Left*<br/>
252+
*Left*\
260253
The left `duration` or `time_point` object.
261254
262-
*Right*<br/>
255+
*Right*\
263256
The right `duration` or `time_point` object.
264257
265258
### Return Value
266259
267260
Each function returns `!(Right < Left)`.
268261
269-
## <a name="op_eq_eq"></a> operator==
262+
## <a name="op_eq_eq"></a> operator==
270263
271264
Determines whether two `duration` objects represent time intervals that have the same length, or whether two `time_point` objects represent the same point in time.
272265
@@ -284,10 +277,10 @@ constexpr bool operator==(
284277

285278
### Parameters
286279

287-
*Left*<br/>
280+
*Left*\
288281
The left `duration` or `time_point` object.
289282

290-
*Right*<br/>
283+
*Right*\
291284
The right `duration` or `time_point` object.
292285

293286
### Return Value
@@ -296,7 +289,7 @@ The first function returns **true** if *Left* and *Right* represent time interva
296289

297290
The second function returns **true** if *Left* and *Right* represent the same point in time. Otherwise, the function returns **false**.
298291

299-
## <a name="op_gt"></a> operator&gt;
292+
## <a name="op_gt"></a> operator&gt;
300293

301294
Determines whether one [duration](../standard-library/duration-class.md) or [time_point](../standard-library/time-point-class.md) object is greater than another `duration` or `time_point` object.
302295

@@ -314,17 +307,17 @@ constexpr bool operator>(
314307
315308
### Parameters
316309
317-
*Left*<br/>
310+
*Left*\
318311
The left `duration` or `time_point` object.
319312
320-
*Right*<br/>
313+
*Right*\
321314
The right `duration` or `time_point` object.
322315
323316
### Return Value
324317
325318
Each function returns `Right < Left`.
326319
327-
## <a name="op_gt_eq"></a> operator&gt;=
320+
## <a name="op_gt_eq"></a> operator&gt;=
328321
329322
Determines whether one [duration](../standard-library/duration-class.md) or [time_point](../standard-library/time-point-class.md) object is greater than or equal to another `duration` or `time_point` object.
330323
@@ -342,17 +335,17 @@ constexpr bool operator>=(
342335

343336
### Parameters
344337

345-
*Left*<br/>
338+
*Left*\
346339
The left `duration` or `time_point` object.
347340

348-
*Right*<br/>
341+
*Right*\
349342
The right `duration` or `time_point` object.
350343

351344
### Return Value
352345

353346
Each function returns `!(Left < Right)`.
354347

355-
## <a name="op_modulo"></a> operator modulo
348+
## <a name="op_modulo"></a> operator modulo
356349

357350
Operator for modulo operations on [duration](../standard-library/duration-class.md) objects.
358351

@@ -372,24 +365,20 @@ constexpr typename common_type<duration<Rep1, _Period1>, duration<Rep2, Period2>
372365
373366
### Parameters
374367
375-
*Dur*<br/>
368+
*Dur*\
376369
A `duration` object.
377370
378-
*Div*<br/>
371+
*Div*\
379372
An integral value.
380373
381-
*Left*<br/>
374+
*Left*\
382375
The left `duration` object.
383376
384-
*Right*<br/>
377+
*Right*\
385378
The right `duration` object.
386379
387380
### Return Value
388381
389382
The first function returns a `duration` object whose interval length is *Dur* modulo *Div*.
390383
391384
The second function returns a value that represents *Left* modulo *Right*.
392-
393-
## See also
394-
395-
[\<chrono>](../standard-library/chrono.md)<br/>

0 commit comments

Comments
 (0)