mirror of
https://github.com/dlang/phobos.git
synced 2025-05-04 17:11:26 +03:00
minor improvement in template constraint
This commit is contained in:
parent
05ac41c5f5
commit
7707f662a8
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ assert(a == [ 5, 5, 5, 5 ]);
|
||||||
----
|
----
|
||||||
*/
|
*/
|
||||||
void fill(Range, Value)(Range range, Value filler)
|
void fill(Range, Value)(Range range, Value filler)
|
||||||
if (isForwardRange!Range && is(typeof(Range.init.front = Value.init)))
|
if (isForwardRange!Range && is(typeof(range.front = filler)))
|
||||||
{
|
{
|
||||||
for (; !range.empty; range.popFront)
|
for (; !range.empty; range.popFront)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue