Skip to content

Commit b2c7262

Browse files
authored
Add missing code blocks for some standard library references
1 parent e497666 commit b2c7262

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

docs/standard-library/basic-ostream-class.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,14 @@ int main()
449449

450450
The nested class describes an object whose declaration structures the formatted output functions and the unformatted output functions.
451451

452+
```cpp
452453
class sentry {
453454
public:
454455
explicit sentry(basic_ostream\<Elem, Tr>& _Ostr);
455456
operator bool() const;
456457
~sentry();
457458
};
459+
```
458460
459461
### Remarks
460462

docs/standard-library/bernoulli-distribution-class.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ The second constructor constructs an object whose stored parameters are initiali
161161
162162
Contains the parameters of the distribution.
163163
164+
```cpp
164165
struct param_type {
165166
typedef bernoulli_distribution distribution_type;
166167
param_type(double p = 0.5);
@@ -169,6 +170,7 @@ struct param_type {
169170
bool operator==(const param_type& right) const;
170171
bool operator!=(const param_type& right) const;
171172
};
173+
```
172174

173175
### Parameters
174176

docs/standard-library/condition-variable-enums.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ ms.assetid: f261ad79-e25b-4afa-9f8a-909ce697e0d8
1111

1212
Supplies symbolic names for the return values of the methods of class template [condition_variable](../standard-library/condition-variable-class.md).
1313

14+
```cpp
1415
class cv_status {
1516
no_timeout
1617
timeout
1718
};
19+
```

docs/standard-library/negative-binomial-distribution-class.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ The second constructor constructs an object whose stored parameters are initiali
224224
225225
Stores the parameters of the distribution.
226226
227+
```cpp
227228
struct param_type {
228229
typedef negative_binomial_distribution`<`result_type> distribution_type;
229230
param_type(result_type k = 1, double p = 0.5);
@@ -233,6 +234,7 @@ struct param_type {
233234
bool operator==(const param_type& right) const;
234235
bool operator!=(const param_type& right) const;
235236
};
237+
```
236238

237239
### Parameters
238240

0 commit comments

Comments
 (0)