apply function to parameters

Jack Applegame japplegame at gmail.com
Tue Aug 6 07:31:10 PDT 2013


In C++11 we can write:

     template<class... Args>
     void somefunc(Args... args {
         ...
     }

     template<class T>
     T process(T p) {
         ...
     }

     template <class... Args>
     void foo(Args... args) {
         somefunc(process(args)...);
     }

Is there a simple way to do this in D?


More information about the Digitalmars-d-learn mailing list