Re: Use of "min" and "max" functions
Re: Use of "min" and "max" functions
- Subject: Re: Use of "min" and "max" functions
- From: Scott Ribe <email@hidden>
- Date: Fri, 18 May 2007 17:20:47 -0600
- Thread-topic: Use of "min" and "max" functions
> Ok, I see - I seemed to remember there also was some type of standard
> library they might be in, but this is obviously the better choice.
There's the STL templates min & max. Just remember that "return a > b ? a :
b;" can evaluate the greater argument twice, so if you embed a call with
side effects...
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden