Does std::move work with lvalue references? How does std::move work on standard containers?

前端 未结 2 1896
难免孤独
难免孤独 2021-02-14 13:43
#include 

struct A { int a[100]; };

void foo (const A& a) {
  std::vector vA; 
  vA.push_back(std::move(a));  // how does move really happen         


        
2条回答
提交回复
热议问题