[cfe-dev] Theoretical question: Duff's device and AST

me22 me22.ca at gmail.com
Sat Jul 19 17:21:00 PDT 2008


On Sat, Jul 19, 2008 at 20:07, Filipe Cabecinhas <filcab at gmail.com> wrote:
>
> Why would you think that, with memcpy, you would have no need for
> duff's device?
> As you can see from the code you posted, the 'to' pointer is never
> changed. Normally one would use duff's device with memory mapped IO,
> not with memory-to-memory tranfers :-)
>

I suppose a variant of it might be useful for std::copy_n on iterators
in C++, as well...



More information about the cfe-dev mailing list