Skip to content

Commit 958f12f

Browse files
authored
Format bernoulli_distribution syntax
1 parent 8bdc1f5 commit 958f12f

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

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

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,30 @@ Generates a Bernoulli distribution.
1414

1515
```cpp
1616
class bernoulli_distribution
17-
{
17+
{
1818
public:
19-
// types
20-
typedef bool result_type;
21-
struct param_type;
22-
23-
// constructors and reset functions
24-
explicit bernoulli_distribution(double p = 0.5);
25-
explicit bernoulli_distribution(const param_type& parm);
26-
void reset();
27-
28-
// generating functions
29-
template <class URNG>
30-
result_type operator()(URNG& gen);
31-
template <class URNG>
32-
result_type operator()(URNG& gen, const param_type& parm);
33-
34-
// property functions
35-
double p() const;
36-
param_type param() const;
37-
void param(const param_type& parm);
38-
result_type min() const;
39-
result_type max() const;
40-
};
19+
// types
20+
typedef bool result_type;
21+
struct param_type;
22+
23+
// constructors and reset functions
24+
explicit bernoulli_distribution(double p = 0.5);
25+
explicit bernoulli_distribution(const param_type& parm);
26+
void reset();
27+
28+
// generating functions
29+
template <class URNG>
30+
result_type operator()(URNG& gen);
31+
template <class URNG>
32+
result_type operator()(URNG& gen, const param_type& parm);
33+
34+
// property functions
35+
double p() const;
36+
param_type param() const;
37+
void param(const param_type& parm);
38+
result_type min() const;
39+
result_type max() const;
40+
};
4141
```
4242

4343
### Parameters

0 commit comments

Comments
 (0)