mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
Remove deprecated uninitializedFill
This commit is contained in:
parent
d327f339aa
commit
96010c84e8
1 changed files with 0 additions and 8 deletions
|
@ -1190,14 +1190,6 @@ void uninitializedFill(Range, Value)(Range range, Value filler)
|
|||
return fill(range, filler);
|
||||
}
|
||||
|
||||
deprecated("Cannot reliably call uninitializedFill on range that does not expose references. Use fill instead.")
|
||||
void uninitializedFill(Range, Value)(Range range, Value filler)
|
||||
if (isInputRange!Range && !hasLvalueElements!Range && is(typeof(range.front = filler)))
|
||||
{
|
||||
static assert(hasElaborateAssign!T, "Cannot execute uninitializedFill a range that does not expose references, and whose objects have an elaborate assign.");
|
||||
return fill(range, filler);
|
||||
}
|
||||
|
||||
/**
|
||||
Initializes all elements of a range with their $(D .init)
|
||||
value. Assumes that the range does not currently contain meaningful
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue