fork download
  1. #include <vector>
  2.  
  3. struct S
  4. {
  5. S(int) {};
  6. S(S&&) {};
  7. };
  8.  
  9. int main()
  10. {
  11. std::vector<S> v = {S(1), S(2), S(3)};
  12. std::vector<S> w = {std::move(S(1)), std::move(S(2)), std::move(S(3))};
  13.  
  14. std::vector<S> or_even_just = {1, 2, 3};
  15. }
Success #stdin #stdout 0s 2956KB
stdin
Standard input is empty
stdout
Standard output is empty