Что лучше использовать std::memcpy() или std::copy() с точки зрения производительности? ⇐ C++
-
Anonymous
Что лучше использовать std::memcpy() или std::copy() с точки зрения производительности?
Is it better to use std::memcpy() as shown below, or is it better to use std::copy() in terms to performance? Why?
char *bits = NULL; ... bits = new (std::nothrow) char[((int *) copyMe->bits)[0]]; if (bits == NULL) { cout bits, ((int *) copyMe->bits)[0]);
Источник: https://stackoverflow.com/questions/470 ... erformance
Is it better to use std::memcpy() as shown below, or is it better to use std::copy() in terms to performance? Why?
char *bits = NULL; ... bits = new (std::nothrow) char[((int *) copyMe->bits)[0]]; if (bits == NULL) { cout bits, ((int *) copyMe->bits)[0]);
Источник: https://stackoverflow.com/questions/470 ... erformance
Мобильная версия