xref: /aosp_15_r20/external/eigen/doc/snippets/Tutorial_range_for_loop_1d_cxx11.cpp (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1 VectorXi v = VectorXi::Random(4);
2 cout << "Here is the vector v:\n";
3 for(auto x : v) cout << x << " ";
4 cout << "\n";
5