Template function : use the array's one !

BCS ao at pathlink.com
Tue Feb 17 13:23:46 PST 2009


Reply to TSalm,

> Hello,
> 
> I'm searching to have a generic comparator function.
> 
> I done this :
> 
[...]

> 
> How can I declare this compare function to use specific code to
> compare
> arrays ?
> Thanks in advance,
> TSalm

take a look at static if and is

http://www.digitalmars.com/d/1.0/version.html#staticif
http://www.digitalmars.com/d/1.0/expression.html#IsExpression




More information about the Digitalmars-d-learn mailing list