I have a pointer to a vector. Now, how can I read the contents of the vector through pointer?
The easiest way use it as array is use vector::data() member.
vector::data()