tmp/tmpg1639ib7/{from.md → to.md}
RENAMED
|
@@ -15,15 +15,14 @@ state eⱼ to eⱼ₊₁.
|
|
| 15 |
The generation algorithm yields the value returned by the last
|
| 16 |
invocation of `e()` while advancing `e`’s state as described above.
|
| 17 |
|
| 18 |
``` cpp
|
| 19 |
template<class Engine, size_t p, size_t r>
|
| 20 |
-
|
| 21 |
-
{
|
| 22 |
public:
|
| 23 |
// types
|
| 24 |
-
|
| 25 |
|
| 26 |
// engine characteristics
|
| 27 |
static constexpr size_t block_size = p;
|
| 28 |
static constexpr size_t used_block = r;
|
| 29 |
static constexpr result_type min() { return Engine::min(); }
|
|
|
|
| 15 |
The generation algorithm yields the value returned by the last
|
| 16 |
invocation of `e()` while advancing `e`’s state as described above.
|
| 17 |
|
| 18 |
``` cpp
|
| 19 |
template<class Engine, size_t p, size_t r>
|
| 20 |
+
class discard_block_engine {
|
|
|
|
| 21 |
public:
|
| 22 |
// types
|
| 23 |
+
using result_type = typename Engine::result_type;
|
| 24 |
|
| 25 |
// engine characteristics
|
| 26 |
static constexpr size_t block_size = p;
|
| 27 |
static constexpr size_t used_block = r;
|
| 28 |
static constexpr result_type min() { return Engine::min(); }
|