www.digitalmars.com         C & C++   DMDScript  
Archives

D Programming
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.ide
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger
D.gnu
D

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics


digitalmars.D.learn - max function

reply Paul D. Anderson <paul.d.removethis.anderson comcast.andthis.net> writes:
Okay, where is the max(a,b) function in phobos?

I realize it's a dead simple template implementation but I thought it would be
implemented somewhere.

Paul
Jun 19 2009
parent reply Jarrett Billingsley <jarrett.billingsley gmail.com> writes:
On Fri, Jun 19, 2009 at 5:05 PM, Paul D.
Anderson<paul.d.removethis.anderson comcast.andthis.net> wrote:
 Okay, where is the max(a,b) function in phobos?

 I realize it's a dead simple template implementation but I thought it would be
implemented somewhere.

 Paul

In D2, it's in std.algorithm. There isn't one in D1.
Jun 19 2009
parent Paul D. Anderson <paul.d.removethis.anderson comcast.andthis.net> writes:
Jarrett Billingsley Wrote:

 On Fri, Jun 19, 2009 at 5:05 PM, Paul D.
 Anderson<paul.d.removethis.anderson comcast.andthis.net> wrote:
 Okay, where is the max(a,b) function in phobos?

 I realize it's a dead simple template implementation but I thought it would be
implemented somewhere.

 Paul

In D2, it's in std.algorithm. There isn't one in D1.

Thanks.
Jun 19 2009