mirror of
https://github.com/dlang/phobos.git
synced 2025-05-04 00:54:05 +03:00
remove wrong ddoc and make disable default ctor
This commit is contained in:
parent
4b3d0ed23c
commit
d3a933b748
1 changed files with 2 additions and 5 deletions
|
@ -2636,7 +2636,7 @@ do
|
||||||
|
|
||||||
/+ @nogc bool array designed for RandomCover.
|
/+ @nogc bool array designed for RandomCover.
|
||||||
- constructed with an invariable length
|
- constructed with an invariable length
|
||||||
- small length means 0 alloc and bit field (if up to 32 and 64 choices to cover)
|
- small length means 0 alloc and bit field (if up to 32(x86) or 64(x64) choices to cover)
|
||||||
- bigger length means non-GC heap allocation(s) and dealloc. +/
|
- bigger length means non-GC heap allocation(s) and dealloc. +/
|
||||||
private struct RandomCoverChoices
|
private struct RandomCoverChoices
|
||||||
{
|
{
|
||||||
|
@ -2659,7 +2659,7 @@ private struct RandomCoverChoices
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this(size_t numChoices) pure nothrow @nogc @trusted @property
|
this(size_t numChoices) pure nothrow @nogc @trusted
|
||||||
{
|
{
|
||||||
import core.memory : pureCalloc;
|
import core.memory : pureCalloc;
|
||||||
import core.exception : onOutOfMemoryError;
|
import core.exception : onOutOfMemoryError;
|
||||||
|
@ -2749,9 +2749,6 @@ Returns:
|
||||||
in random order. Will be a forward range if both `r` and
|
in random order. Will be a forward range if both `r` and
|
||||||
`rng` are forward ranges, an
|
`rng` are forward ranges, an
|
||||||
$(REF_ALTTEXT input range, isInputRange, std,range,primitives) otherwise.
|
$(REF_ALTTEXT input range, isInputRange, std,range,primitives) otherwise.
|
||||||
|
|
||||||
Throws:
|
|
||||||
AssertError if a memory allocation fails.
|
|
||||||
*/
|
*/
|
||||||
struct RandomCover(Range, UniformRNG = void)
|
struct RandomCover(Range, UniformRNG = void)
|
||||||
if (isRandomAccessRange!Range && (isUniformRNG!UniformRNG || is(UniformRNG == void)))
|
if (isRandomAccessRange!Range && (isUniformRNG!UniformRNG || is(UniformRNG == void)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue