mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
Add comment about overlap being undocumented on purpose.
This commit is contained in:
parent
ded7d066eb
commit
6f65897a6a
1 changed files with 3 additions and 2 deletions
|
@ -615,6 +615,7 @@ unittest
|
||||||
|
|
||||||
// overlap
|
// overlap
|
||||||
/*
|
/*
|
||||||
|
NOTE: Undocumented for now, overlap does not yet work with ctfe.
|
||||||
Returns the overlapping portion, if any, of two arrays. Unlike $(D
|
Returns the overlapping portion, if any, of two arrays. Unlike $(D
|
||||||
equal), $(D overlap) only compares the pointers in the ranges, not the
|
equal), $(D overlap) only compares the pointers in the ranges, not the
|
||||||
values referred by them. If $(D r1) and $(D r2) have an overlapping
|
values referred by them. If $(D r1) and $(D r2) have an overlapping
|
||||||
|
@ -1547,11 +1548,11 @@ if (isDynamicArray!(E[]) && isForwardRange!R1 && isForwardRange!R2
|
||||||
}
|
}
|
||||||
|
|
||||||
/++
|
/++
|
||||||
Same as above, but outputs the result via OutputRange $(D sink).
|
Same as above, but outputs the result via OutputRange $(D sink).
|
||||||
If no match is found the original array is transfered to $(D sink) as is.
|
If no match is found the original array is transfered to $(D sink) as is.
|
||||||
+/
|
+/
|
||||||
void replaceInto(E, Sink, R1, R2)(Sink sink, E[] subject, R1 from, R2 to)
|
void replaceInto(E, Sink, R1, R2)(Sink sink, E[] subject, R1 from, R2 to)
|
||||||
if (isOutputRange!(Sink, E) && isDynamicArray!(E[])
|
if (isOutputRange!(Sink, E) && isDynamicArray!(E[])
|
||||||
&& isForwardRange!R1 && isForwardRange!R2
|
&& isForwardRange!R1 && isForwardRange!R2
|
||||||
&& (hasLength!R2 || isSomeString!R2))
|
&& (hasLength!R2 || isSomeString!R2))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue