fork download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. int main()
  5. {
  6. const std::vector<int> data = {1,2,3};
  7. std::vector<int> data_moved=std::move(data);
  8. for(auto& i:data)
  9. std::cout<<i;
  10. }
  11.  
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
123