Skip to content

Commit ca8692c

Browse files
authored
Merge pull request #1074 from msebolt/format-standard-pr15
format standard pr15
2 parents 2e62d62 + 9e2164c commit ca8692c

39 files changed

+754
-754
lines changed

docs/standard-library/type-traits-functions.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ helpviewer_keywords: ["std::is_assignable", "std::is_copy_assignable", "std::is_
1818

1919
## <a name="is_assignable"></a> is_assignable
2020

21-
Tests whether a value of `From` type can be assigned to a `To` type.
21+
Tests whether a value of *From* type can be assigned to a *To* type.
2222

2323
```cpp
2424
template <class To, class From>
@@ -27,15 +27,15 @@ struct is_assignable;
2727
2828
### Parameters
2929
30-
To
30+
*To*
3131
The type of the object that receives the assignment.
3232
33-
From
33+
*From*
3434
The type of the object that provides the value.
3535
3636
### Remarks
3737
38-
The unevaluated expression `declval<To>() = declval<From>()` must be well-formed. Both `From` and `To` must be complete types, `void`, or arrays of unknown bound.
38+
The unevaluated expression `declval<To>() = declval<From>()` must be well-formed. Both *From* and *To* must be complete types, **void**, or arrays of unknown bound.
3939
4040
## <a name="is_copy_assignable"></a> is_copy_assignable
4141
@@ -48,12 +48,12 @@ struct is_copy_assignable;
4848

4949
### Parameters
5050

51-
`Ty`
51+
*Ty*
5252
The type to query.
5353

5454
### Remarks
5555

56-
An instance of the type predicate holds true if the type `Ty` is a class that has a copy assignment operator, otherwise it holds false. Equivalent to is_assignable\<Ty&, const Ty&>.
56+
An instance of the type predicate holds true if the type *Ty* is a class that has a copy assignment operator, otherwise it holds false. Equivalent to is_assignable\<Ty&, const Ty&>.
5757

5858
## <a name="is_copy_constructible"></a> is_copy_constructible
5959

@@ -66,12 +66,12 @@ struct is_copy_constructible;
6666

6767
### Parameters
6868

69-
`Ty`
69+
*Ty*
7070
The type to query.
7171

7272
### Remarks
7373

74-
An instance of the type predicate holds true if the type `Ty` is a class that has a copy constructor, otherwise it holds false.
74+
An instance of the type predicate holds true if the type *Ty* is a class that has a copy constructor, otherwise it holds false.
7575

7676
### Example
7777

@@ -119,12 +119,12 @@ struct is_default_constructible;
119119

120120
### Parameters
121121

122-
`T`
122+
*T*
123123
The type to query.
124124

125125
### Remarks
126126

127-
An instance of the type predicate holds true if the type `T` is a class type that has a default constructor, otherwise it holds false. This is equivalent to the predicate `is_constructible<T>`. Type `T` must be a complete type, `void`, or an array of unknown bound.
127+
An instance of the type predicate holds true if the type *T* is a class type that has a default constructor, otherwise it holds false. This is equivalent to the predicate `is_constructible<T>`. Type *T* must be a complete type, **void**, or an array of unknown bound.
128128

129129
### Example
130130

@@ -172,7 +172,7 @@ struct is_move_assignable;
172172

173173
### Parameters
174174

175-
`T`
175+
*T*
176176
The type to query.
177177

178178
### Remarks
@@ -190,12 +190,12 @@ struct is_move_constructible;
190190

191191
### Parameters
192192

193-
T
193+
*T*
194194
The type to be evaluated
195195

196196
### Remarks
197197

198-
A type predicate that evaluates to true if the type `T` can be constructed by using a move operation. This predicate is equivalent to `is_constructible<T, T&&>`.
198+
A type predicate that evaluates to true if the type *T* can be constructed by using a move operation. This predicate is equivalent to `is_constructible<T, T&&>`.
199199

200200
## <a name="is_nothrow_move_assignable"></a> is_nothrow_move_assignable
201201

@@ -208,12 +208,12 @@ struct is_nothrow_move_assignable;
208208

209209
### Parameters
210210

211-
`Ty`
211+
*Ty*
212212
The type to query.
213213

214214
### Remarks
215215

216-
An instance of the type predicate holds true if the type `Ty` has a nothrow move assignment operator, otherwise it holds false.
216+
An instance of the type predicate holds true if the type *Ty* has a nothrow move assignment operator, otherwise it holds false.
217217

218218
## <a name="is_trivially_copy_assignable"></a> is_trivially_copy_assignable
219219

@@ -226,14 +226,14 @@ struct is_trivially_copy_assignable;
226226

227227
### Parameters
228228

229-
`T`
229+
*T*
230230
The type to query.
231231

232232
### Remarks
233233

234-
An instance of the type predicate holds true if the type `T` is a class that has a trivial copy assignment operator, otherwise it holds false.
234+
An instance of the type predicate holds true if the type *T* is a class that has a trivial copy assignment operator, otherwise it holds false.
235235

236-
An assignment constructor for a class `T` is trivial if it is implicitly provided, the class `T` has no virtual functions, the class `T` has no virtual bases, the classes of all the non-static data members of class type have trivial assignment operators, and the classes of all the non-static data members of type array of class have trivial assignment operators.
236+
An assignment constructor for a class *T* is trivial if it is implicitly provided, the class *T* has no virtual functions, the class *T* has no virtual bases, the classes of all the non-static data members of class type have trivial assignment operators, and the classes of all the non-static data members of type array of class have trivial assignment operators.
237237

238238
## <a name="is_trivially_move_assignable"></a> is_trivially_move_assignable
239239

@@ -246,20 +246,20 @@ struct is_trivially_move_assignable;
246246

247247
### Parameters
248248

249-
`Ty`
249+
*Ty*
250250
The type to query.
251251

252252
### Remarks
253253

254-
An instance of the type predicate holds true if the type `Ty` is a class that has a trivial move assignment operator, otherwise it holds false.
254+
An instance of the type predicate holds true if the type *Ty* is a class that has a trivial move assignment operator, otherwise it holds false.
255255

256-
A move assignment operator for a class `Ty` is trivial if:
256+
A move assignment operator for a class *Ty* is trivial if:
257257

258258
it is implicitly provided
259259

260-
the class `Ty` has no virtual functions
260+
the class *Ty* has no virtual functions
261261

262-
the class `Ty` has no virtual bases
262+
the class *Ty* has no virtual bases
263263

264264
the classes of all the non-static data members of class type have trivial move assignment operators
265265

@@ -276,26 +276,26 @@ struct is_trivially_move_constructible;
276276

277277
### Parameters
278278

279-
`Ty`
279+
*Ty*
280280
The type to query.
281281

282282
### Remarks
283283

284-
An instance of the type predicate holds true if the type `Ty` is a class that has a trivial move constructor, otherwise it holds false.
284+
An instance of the type predicate holds true if the type *Ty* is a class that has a trivial move constructor, otherwise it holds false.
285285

286-
A move constructor for a class `Ty` is trivial if:
286+
A move constructor for a class *Ty* is trivial if:
287287

288288
it is implicitly declared
289289

290290
its parameter types are equivalent to those of an implicit declaration
291291

292-
the class `Ty` has no virtual functions
292+
the class *Ty* has no virtual functions
293293

294-
the class `Ty` has no virtual bases
294+
the class *Ty* has no virtual bases
295295

296296
the class has no volatile non-static data members
297297

298-
all the direct bases of the class `Ty` have trivial move constructors
298+
all the direct bases of the class *Ty* have trivial move constructors
299299

300300
the classes of all the non-static data members of class type have trivial move constructors
301301

docs/standard-library/type-traits.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Primary type categories
6262

6363
|||
6464
|-|-|
65-
|[is_void](../standard-library/is-void-class.md)|Tests whether the type is `void`.|
65+
|[is_void](../standard-library/is-void-class.md)|Tests whether the type is **void**.|
6666
|[is_null_pointer](../standard-library/is-null-pointer-class.md)|Tests whether the type is `std::nullptr_t`.|
6767
|[is_integral](../standard-library/is-integral-class.md)|Tests whether the type is integral.|
6868
|[is_floating_point](../standard-library/is-floating-point-class.md)|Tests whether the type is floating-point.|
@@ -83,7 +83,7 @@ Composite type categories
8383
|-|-|
8484
|[is_reference](../standard-library/is-reference-class.md)|Tests whether the type is a reference.|
8585
|[is_arithmetic](../standard-library/is-arithmetic-class.md)|Tests whether the type is arithmetic.|
86-
|[is_fundamental](../standard-library/is-fundamental-class.md)|Tests whether the type is `void` or arithmetic.|
86+
|[is_fundamental](../standard-library/is-fundamental-class.md)|Tests whether the type is **void** or arithmetic.|
8787
|[is_object](../standard-library/is-object-class.md)|Tests whether the type is an object type.|
8888
|[is_scalar](../standard-library/is-scalar-class.md)|Tests whether the type is scalar.|
8989
|[is_compound](../standard-library/is-compound-class.md)|Tests whether the type is not scalar.|
@@ -93,8 +93,8 @@ Type properties
9393

9494
|||
9595
|-|-|
96-
|[is_const](../standard-library/is-const-class.md)|Tests whether the type is `const`.|
97-
|[is_volatile](../standard-library/is-volatile-class.md)|Tests whether the type is `volatile`.|
96+
|[is_const](../standard-library/is-const-class.md)|Tests whether the type is **const**.|
97+
|[is_volatile](../standard-library/is-volatile-class.md)|Tests whether the type is **volatile**.|
9898
|[is_trivial](../standard-library/is-trivial-class.md)|Tests whether the type is trivial.|
9999
|[is_trivially_copyable](../standard-library/is-trivially-copyable-class.md)|Tests whether the type is trivially copyable.|
100100
|[is_standard_layout](../standard-library/is-standard-layout-class.md)|Tests if type is a standard layout type.|
@@ -152,9 +152,9 @@ Const-volatile modifications
152152

153153
|||
154154
|-|-|
155-
|[add_const](../standard-library/add-const-class.md)|Produces a `const` type from type.|
156-
|[add_volatile](../standard-library/add-volatile-class.md)|Produces a `volatile` type from type.|
157-
|[add_cv](../standard-library/add-cv-class.md)|Produces a `const volatile` type from type.|
155+
|[add_const](../standard-library/add-const-class.md)|Produces a **const** type from type.|
156+
|[add_volatile](../standard-library/add-volatile-class.md)|Produces a **volatile** type from type.|
157+
|[add_cv](../standard-library/add-cv-class.md)|Produces a **const volatile** type from type.|
158158
|[remove_const](../standard-library/remove-const-class.md)|Produces a non-const type from type.|
159159
|[remove_volatile](../standard-library/remove-volatile-class.md)|Produces a non-volatile type from type.|
160160
|[remove_cv](../standard-library/remove-cv-class.md)|Produces a non-const non-volatile type from type.|

docs/standard-library/unary-negate-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ public:
3131

3232
### Parameters
3333

34-
`Func`
34+
*Func*
3535
The unary function to be negated.
3636

37-
`left`
37+
*left*
3838
The operand of the unary function to be negated.
3939

4040
## Return Value

docs/standard-library/underlying-type-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ struct underlying_type;
2525

2626
### Parameters
2727

28-
`T`
28+
*T*
2929
The type to modify.
3030

3131
## Remarks
3232

33-
The `type` member typedef of the template class names the underlying integral type of `T`, when `T` is an enumeration type, otherwise there is no member typedef `type`.
33+
The `type` member typedef of the template class names the underlying integral type of *T*, when *T* is an enumeration type, otherwise there is no member typedef `type`.
3434

3535
## Requirements
3636

docs/standard-library/uniform-int-distribution-class.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public:
5151
### Parameters
5252
5353
*IntType*
54-
The integer result type, defaults to `int`. For possible types, see [\<random>](../standard-library/random.md).
54+
The integer result type, defaults to **int**. For possible types, see [\<random>](../standard-library/random.md).
5555
5656
## Remarks
5757
@@ -170,20 +170,20 @@ explicit uniform_int_distribution(const param_type& parm);
170170
171171
### Parameters
172172
173-
*a*
173+
*a*
174174
The lower bound for random values, inclusive.
175175
176-
*b*
176+
*b*
177177
The upper bound for random values, inclusive.
178178
179-
*parm*
179+
*parm*
180180
The `param_type` structure used to construct the distribution.
181181
182182
### Remarks
183183
184184
**Precondition:** `a ≤ b`
185185
186-
The first constructor constructs an object whose stored `a` value holds the value *a* and whose stored `b` value holds the value *b*.
186+
The first constructor constructs an object whose stored *a* value holds the value *a* and whose stored *b* value holds the value *b*.
187187
188188
The second constructor constructs an object whose stored parameters are initialized from *parm*. You can obtain and set the current parameters of an existing distribution by calling the `param()` member function.
189189
@@ -206,13 +206,13 @@ struct param_type {
206206

207207
### Parameters
208208

209-
*a*
209+
*a*
210210
The lower bound for random values, inclusive.
211211

212-
*b*
212+
*b*
213213
The upper bound for random values, inclusive.
214214

215-
*right*
215+
*right*
216216
The `param_type` object to compare to this.
217217

218218
### Remarks

docs/standard-library/uniform-real-distribution-class.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public:
5151
### Parameters
5252
5353
*RealType*
54-
The floating-point result type, defaults to `double`. For possible types, see [\<random>](../standard-library/random.md).
54+
The floating-point result type, defaults to **double**. For possible types, see [\<random>](../standard-library/random.md).
5555
5656
## Remarks
5757
@@ -169,20 +169,20 @@ explicit uniform_real_distribution(const param_type& parm);
169169
170170
### Parameters
171171
172-
*a*
172+
*a*
173173
The lower bound for random values, inclusive.
174174
175-
*b*
175+
*b*
176176
The upper bound for random values, exclusive.
177177
178-
*parm*
178+
*parm*
179179
The `param_type` structure used to construct the distribution.
180180
181181
### Remarks
182182
183183
**Precondition:** `a < b`
184184
185-
The first constructor constructs an object whose stored `a` value holds the value *a* and whose stored `b` value holds the value *b*.
185+
The first constructor constructs an object whose stored *a* value holds the value *a* and whose stored *b* value holds the value *b*.
186186
187187
The second constructor constructs an object whose stored parameters are initialized from *parm*. You can obtain and set the current parameters of an existing distribution by calling the `param()` member function.
188188
@@ -204,13 +204,13 @@ struct param_type {
204204

205205
### Parameters
206206

207-
*a*
207+
*a*
208208
The lower bound for random values, inclusive.
209209

210-
*b*
210+
*b*
211211
The upper bound for random values, exclusive.
212212

213-
*right*
213+
*right*
214214
The `param_type` object to compare to this.
215215

216216
### Remarks

0 commit comments

Comments
 (0)