You think in a too simple way with "insertIntoGSVectorUnique".
It's just a pointer that is stored in the vector and not a number. The vector does not know what kind of object is behind the pointer so it's not possible to compare those.
I think in such a case a hashmap is the better choice than a vector.