max() in phobos?

Don Clugston dac at
Mon Nov 6 23:53:00 PST 2006

Bill Baxter wrote:
> Is there a generic 'max' function anywhere in phobos?
> The closest I could find was std.math.fmax().
> Grepping Phobos, I find there is a generic max()/min() pair in called 
> "std.math2".  Is math2 an official part of the library?  Can I count on 
> it being there?  Or is that stuff that's slated to be moved into 
> std.math eventually?

It should be removed. Almost all of the worthwhile stuff in it was moved 
into std.math. The rest is obsolete, dating from the days before D had 

More information about the Digitalmars-d-learn mailing list