Hi.
I have a std::vector<obj> data; That is Passed to a function like this FunctionName(std::vector<obj> *data);
Then in the function How should I use std::vector data.
Like This
data[0][elementinvector].doobjfunction(); ///Is this valid to use.
or should I use.
(*data)[elementinvector].doobjfunction();
Are they both doing the same thing just wondering.