Boost logo

Boost :

From: Terje Slettebø (tslettebo_at_[hidden])
Date: 2003-01-23 06:30:27


>From: "Terje Slettebø" <tslettebo_at_[hidden]>
>
> I can imagine something like this:
>
> template<class Sequence, class T, template<class> void Function(T)>
> struct for_each;
>
> Possibly using overloaded class templates, as well (another possible
> extension).

Come to think of it, the latter wouldn't be needed here, as for_each is a
function template, and they can be overloaded. :) That would allow different
arity for the the function template template parameter.

Regards,

Terje


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk