Dereferencing operator overloaded []

Hello, I need to know how to dereference operator overloading functions

1
2
3
4
void Function(vector<int> *pVector)
{
    cout << pVector[i];
}


this would cause an error, so far I've tried

1
2
pVector->[i]
(*pVector)[i]


Does anyone mind helping?
#2 should work. What error are you getting?
Thanks firedraco, I tried again and for some reason it worked, I must have done a typo last time ^^ appreciate it
Topic archived. No new replies allowed.