From Jason Turner

[rand.util]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpvz3o9_h2/{from.md → to.md} +10 -4
tmp/tmpvz3o9_h2/{from.md → to.md} RENAMED
@@ -1,12 +1,9 @@
1
  ### Utilities <a id="rand.util">[[rand.util]]</a>
2
 
3
  #### Class `seed_seq` <a id="rand.util.seedseq">[[rand.util.seedseq]]</a>
4
 
5
- No function described in this section  [[rand.util.seedseq]] throws an
6
- exception.
7
-
8
  ``` cpp
9
  class seed_seq
10
  {
11
  public:
12
  // types
@@ -42,10 +39,12 @@ seed_seq();
42
  ```
43
 
44
  *Effects:* Constructs a `seed_seq` object as if by default-constructing
45
  its member `v`.
46
 
 
 
47
  ``` cpp
48
  template<class T>
49
  seed_seq(initializer_list<T> il);
50
  ```
51
 
@@ -86,18 +85,23 @@ s = `v.size()` and n = `end` - `begin`, fills the supplied range
86
  [`begin`,`end`) according to the following algorithm in which each
87
  operation is to be carried out modulo 2³², each indexing operator
88
  applied to `begin` is to be taken modulo n, and T(x) is defined as
89
  $x \, \xor \, (x \, \rightshift \, 27)$:
90
 
 
 
 
91
  ``` cpp
92
  size_t size() const;
93
  ```
94
 
95
  *Returns:* The number of 32-bit units that would be returned by a call
96
  to `param()`.
97
 
98
- *Complexity:* constant time.
 
 
99
 
100
  ``` cpp
101
  template<class OutputIterator>
102
  void param(OutputIterator dest) const;
103
  ```
@@ -112,10 +116,12 @@ destination, as if by executing the following statement:
112
 
113
  ``` cpp
114
  copy(v.begin(), v.end(), dest);
115
  ```
116
 
 
 
117
  #### Function template `generate_canonical` <a id="rand.util.canonical">[[rand.util.canonical]]</a>
118
 
119
  Each function instantiated from the template described in this section 
120
  [[rand.util.canonical]] maps the result of one or more invocations of a
121
  supplied uniform random number generator `g` to one member of the
 
1
  ### Utilities <a id="rand.util">[[rand.util]]</a>
2
 
3
  #### Class `seed_seq` <a id="rand.util.seedseq">[[rand.util.seedseq]]</a>
4
 
 
 
 
5
  ``` cpp
6
  class seed_seq
7
  {
8
  public:
9
  // types
 
39
  ```
40
 
41
  *Effects:* Constructs a `seed_seq` object as if by default-constructing
42
  its member `v`.
43
 
44
+ *Throws:* Nothing.
45
+
46
  ``` cpp
47
  template<class T>
48
  seed_seq(initializer_list<T> il);
49
  ```
50
 
 
85
  [`begin`,`end`) according to the following algorithm in which each
86
  operation is to be carried out modulo 2³², each indexing operator
87
  applied to `begin` is to be taken modulo n, and T(x) is defined as
88
  $x \, \xor \, (x \, \rightshift \, 27)$:
89
 
90
+ *Throws:* What and when `RandomAccessIterator` operations of `begin` and
91
+ `end` throw.
92
+
93
  ``` cpp
94
  size_t size() const;
95
  ```
96
 
97
  *Returns:* The number of 32-bit units that would be returned by a call
98
  to `param()`.
99
 
100
+ *Throws:* Nothing.
101
+
102
+ *Complexity:* Constant time.
103
 
104
  ``` cpp
105
  template<class OutputIterator>
106
  void param(OutputIterator dest) const;
107
  ```
 
116
 
117
  ``` cpp
118
  copy(v.begin(), v.end(), dest);
119
  ```
120
 
121
+ *Throws:* What and when `OutputIterator` operations of `dest` throw.
122
+
123
  #### Function template `generate_canonical` <a id="rand.util.canonical">[[rand.util.canonical]]</a>
124
 
125
  Each function instantiated from the template described in this section 
126
  [[rand.util.canonical]] maps the result of one or more invocations of a
127
  supplied uniform random number generator `g` to one member of the