mirror of
https://github.com/dlang/phobos.git
synced 2025-05-12 23:29:01 +03:00
Make medianOf private for now to have freedom in choosing a public spec later
This commit is contained in:
parent
0a967579bb
commit
1859f0dc19
1 changed files with 4 additions and 2 deletions
|
@ -3119,7 +3119,9 @@ unittest
|
||||||
}
|
}
|
||||||
|
|
||||||
// medianOf
|
// medianOf
|
||||||
/**
|
/*
|
||||||
|
Private for the time being.
|
||||||
|
|
||||||
Computes the median of 2 to 5 arbitrary indexes in random-access range `r`
|
Computes the median of 2 to 5 arbitrary indexes in random-access range `r`
|
||||||
using hand-written specialized algorithms. The indexes must be distinct (if not,
|
using hand-written specialized algorithms. The indexes must be distinct (if not,
|
||||||
behavior is implementation-defined). The function also partitions the elements
|
behavior is implementation-defined). The function also partitions the elements
|
||||||
|
@ -3140,7 +3142,7 @@ median of the four in `r[c]`, the maximum in `r[d]`, and the two others in
|
||||||
r = The range containing the indexes.
|
r = The range containing the indexes.
|
||||||
i = Two to five indexes inside `r`.
|
i = Two to five indexes inside `r`.
|
||||||
*/
|
*/
|
||||||
void medianOf(
|
private void medianOf(
|
||||||
alias less = "a < b",
|
alias less = "a < b",
|
||||||
Flag!"leanRight" flag = No.leanRight,
|
Flag!"leanRight" flag = No.leanRight,
|
||||||
Range,
|
Range,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue