fork download
  1. #include <functional>
  2. #include <vector>
  3.  
  4. struct S {
  5. typedef unsigned char uchar;
  6. std::vector<uchar> mVec1;
  7. std::vector<uchar> mVec2;
  8. std::vector<uchar> mVec3;
  9.  
  10. void test()
  11. {
  12. using namespace std;
  13.  
  14. vector< reference_wrapper<vector<uchar>> > vectorOfVectorRefs = {mVec1, mVec2, mVec3};
  15.  
  16. }
  17. };
  18.  
  19.  
  20.  
  21. int main()
  22. {
  23. S s;
  24. s.test();
  25. }
Success #stdin #stdout 0s 3056KB
stdin
Standard input is empty
stdout
Standard output is empty