the return type of begin is an iterator, not a pointer, and you should never use begin when you need to get a pointer to the data in a vector.
&*v.begin() = &v[0]; // never use v.begin() as a pointer
the return type of begin is an iterator, not a pointer, and you should never use begin when you need to get a pointer to the data in a vector.
&*v.begin() = &v[0]; // never use v.begin() as a pointer