Function Pointers with Type T

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 15 18:21:45 PDT 2014


On Tue, 16 Sep 2014 01:09:27 +0000
amparacha via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

first change:
  bool function(T)(T val1,T val2) ptr=∁
to
  auto ptr = &comp!T;

second change:
  int partition(T)(T[]list,bool function(T)(T val1,T val2)ptr,int left,int right)}
to
  int partition(T)(T[]list,bool function(T val1,T val2)ptr,int left,int right){

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20140916/1be48a04/attachment.sig>


More information about the Digitalmars-d-learn mailing list