Hey all, Is there a boost equivalent for memcpy? Thanks!
EDIT: Sorry, I didn't realize memcpy was in the standard library :) I thought it was an OS call :(
Hey all, Is there a boost equivalent for memcpy? Thanks!
EDIT: Sorry, I didn't realize memcpy was in the standard library :) I thought it was an OS call :(
Does there need to be one? What's wrong with memcpy
? Although it comes from C, it's a perfectly valid C++ function. If you want something that's aware of C++ objects and their assignment operators, then use std::copy
. You might also want to take a look at std::uninitialized_copy
.