Map_placement_new.cpp revision c981c48f5bc9aefeffc0bcb0cc3934c2fae179dd
1int data[] = {1,2,3,4,5,6,7,8,9};
2Map<RowVectorXi> v(data,4);
3cout << "The mapped vector v is: " << v << "\n";
4new (&v) Map<RowVectorXi>(data+4,5);
5cout << "Now v is: " << v << "\n";