Что лучше использовать std::memcpy() или std::copy() с точки зрения производительности? ⇐ C++
Что лучше использовать 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
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
В чем разница между `std :: copy` и` std :: ranges :: copy`? [дублировать]
Anonymous » » в форуме C++ - 0 Ответы
- 22 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Что было бы лучше с точки зрения производительности лямбда или простой петли? [дублировать]
Anonymous » » в форуме JAVA - 0 Ответы
- 10 Просмотры
-
Последнее сообщение Anonymous
-