После тестирования этого кода: < /p>
#include
#include
#include
#include
void x(std::vector&& v){ }
void y(const std::vector& v) { }
int main() {
std::vector v = {};
auto tp = std::chrono::high_resolution_clock::now();
for (int i = 0; i < 1000000000; ++i)
x(std::move(v));
auto t2 = std::chrono::high_resolution_clock::now();
auto time = std::chrono::duration_cast(t2 - tp);
std::cout
Подробнее здесь: https://stackoverflow.com/questions/330 ... -than-move