当前位置: 动力学知识库 > 问答 > 编程问答 >

c++ - Boost equivalent of memcpy?

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: