fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. struct B
  6. {
  7. std::vector<double> c;
  8. void cpyV(const std::vector<double> &v)
  9. {
  10. c = v;
  11. return;
  12. }
  13. };
  14.  
  15. struct C
  16. {
  17. std::vector<std::vector<double> > c;
  18. void cpyV(const std::vector<std::vector<double> > &v)
  19. {
  20. c = v;
  21. return;
  22. }
  23. };
  24.  
  25. int main()
  26. {
  27. std::vector<double> a;
  28. std:;vector<std::vector<double>> aa;
  29.  
  30. B b;
  31. b.cpyV(a);
  32.  
  33. C c;
  34. c.cpyV(aa);
  35.  
  36. return 0;
  37. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
Standard output is empty