a question about vector
I have a pointer pointed to a vector, which contain all the infomation
and an "index array".
I want to filter the information according to the "index array", and put result into DestVec.
So I define a proto like this:
|
void func(vector<Type *> &DestVec, const vector<Type> *pDataSrc, int indexlist[], int listlength)
|
I found hard to code this function, anyone can help me? thanks.
how do you want to filter?
It's better to have a const reference to a vector rather than a pointer.
Topic archived. No new replies allowed.