From Jason Turner

[rand.synopsis]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpcw0s51xf/{from.md → to.md} +14 -15
tmp/tmpcw0s51xf/{from.md → to.md} RENAMED
@@ -2,11 +2,10 @@
2
 
3
  ``` cpp
4
  #include <initializer_list>
5
 
6
  namespace std {
7
-
8
  // [rand.eng.lcong], class template linear_congruential_engine
9
  template<class UIntType, UIntType a, UIntType c, UIntType m>
10
  class linear_congruential_engine;
11
 
12
  // [rand.eng.mers], class template mersenne_twister_engine
@@ -31,30 +30,31 @@ namespace std {
31
  // [rand.adapt.shuf], class template shuffle_order_engine
32
  template<class Engine, size_t k>
33
  class shuffle_order_engine;
34
 
35
  // [rand.predef], engines and engine adaptors with predefined parameters
36
- typedef see below minstd_rand0;
37
- typedef see below minstd_rand;
38
- typedef see below mt19937;
39
- typedef see below mt19937_64;
40
- typedef see below ranlux24_base;
41
- typedef see below ranlux48_base;
42
- typedef see below ranlux24;
43
- typedef see below ranlux48;
44
- typedef see below knuth_b;
45
- typedef see below default_random_engine;
 
46
 
47
  // [rand.device], class random_device
48
  class random_device;
49
 
50
  // [rand.util.seedseq], class seed_seq
51
  class seed_seq;
52
 
53
  // [rand.util.canonical], function template generate_canonical
54
- template<class RealType, size_t bits, class URNG>
55
- RealType generate_canonical(URNG& g);
56
 
57
  // [rand.dist.uni.int], class template uniform_int_distribution
58
  template<class IntType = int>
59
  class uniform_int_distribution;
60
 
@@ -130,9 +130,8 @@ namespace std {
130
  class piecewise_constant_distribution;
131
 
132
  // [rand.dist.samp.plinear], class template piecewise_linear_distribution
133
  template<class RealType = double>
134
  class piecewise_linear_distribution;
135
-
136
- } // namespace std
137
  ```
138
 
 
2
 
3
  ``` cpp
4
  #include <initializer_list>
5
 
6
  namespace std {
 
7
  // [rand.eng.lcong], class template linear_congruential_engine
8
  template<class UIntType, UIntType a, UIntType c, UIntType m>
9
  class linear_congruential_engine;
10
 
11
  // [rand.eng.mers], class template mersenne_twister_engine
 
30
  // [rand.adapt.shuf], class template shuffle_order_engine
31
  template<class Engine, size_t k>
32
  class shuffle_order_engine;
33
 
34
  // [rand.predef], engines and engine adaptors with predefined parameters
35
+ using minstd_rand0 = see below;
36
+ using minstd_rand = see below;
37
+ using mt19937 = see below;
38
+ using mt19937_64 = see below;
39
+ using ranlux24_base = see below;
40
+ using ranlux48_base = see below;
41
+ using ranlux24 = see below;
42
+ using ranlux48 = see below;
43
+ using knuth_b = see below;
44
+
45
+ using default_random_engine = see below;
46
 
47
  // [rand.device], class random_device
48
  class random_device;
49
 
50
  // [rand.util.seedseq], class seed_seq
51
  class seed_seq;
52
 
53
  // [rand.util.canonical], function template generate_canonical
54
+ template<class RealType, size_t bits, class URBG>
55
+ RealType generate_canonical(URBG& g);
56
 
57
  // [rand.dist.uni.int], class template uniform_int_distribution
58
  template<class IntType = int>
59
  class uniform_int_distribution;
60
 
 
130
  class piecewise_constant_distribution;
131
 
132
  // [rand.dist.samp.plinear], class template piecewise_linear_distribution
133
  template<class RealType = double>
134
  class piecewise_linear_distribution;
135
+ }
 
136
  ```
137