I have a pointer to a vector. Now, how can I read the contents of the vector through pointer?
There are a lot of solutions. For example you can use at() method.
at()
*I assumed that you a looking for equivalent to [] operator.
[]