mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 15:10:46 +03:00
std.algo.cmp.max docu
* Params * Returns quickfur review fixes comma quickfur klickverbot
This commit is contained in:
parent
e1d2c9e4ab
commit
0634a22012
1 changed files with 9 additions and 1 deletions
|
@ -1194,7 +1194,15 @@ levenshteinDistanceAndPath(alias equals = "a == b", Range1, Range2)
|
||||||
|
|
||||||
// max
|
// max
|
||||||
/**
|
/**
|
||||||
Returns the maximum of the passed-in values.
|
Iterates the passed arguments and return the maximum value.
|
||||||
|
|
||||||
|
Params:
|
||||||
|
args = The values to select the maximum from. At least two arguments must
|
||||||
|
be passed.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The maximum of the passed-in args. The type of the returned value is
|
||||||
|
the type among the passed arguments that is able to store the largest value.
|
||||||
*/
|
*/
|
||||||
MaxType!T max(T...)(T args)
|
MaxType!T max(T...)(T args)
|
||||||
if (T.length >= 2)
|
if (T.length >= 2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue