This is a bit strange - is the following ok:
vector<int> a(100, 15);
vector<int> &b = a;
now does b just point to vector a? So if I modify a, that will be reflected when dumping values of b? And when modifying values through b, they will be reflected in a? And b does not allocate any actual memory, right?
Normally I would just use a pointer like:
vector<int>* p = &a;
but I'm trying to find out for someone who hates using the '->' operator etc with vectors. Strange I know,