integer max, min?

Bill Baxter dnewsgroup at billbaxter.com
Tue Oct 2 13:37:31 PDT 2007


Paolo Invernizzi wrote:
> Natan,
> I'm talking about the (b) case, sorry for the confusion.
> I know I can use a template, I'm just wondering if THAT template was in 
> some Phobos module, as I cannot find it!
> I'm already including std.math, so I was only wondering why...
> 

Nope, crazy as it may seem it's not there.  There's also no standard 
swap() function like:

void swap(T)(ref T a, ref T b) {
     T tmp = a;
     a = b;
     b = tmp;
}

--bb


More information about the Digitalmars-d-learn mailing list