indices in vectors

Hi,

I am using vectors for maintaining a sorted list, I am fine with using iterators and vectors but I want to 2 indices for each node of the vector. Can someone help me with this please.
What the... you want 2 separate indices for each element of a vector? What's the point?
If you are making a wrapper class for the vector, you can overload the subscript operator to get that behavior, I guess...
Oh yes.. I get your point, could you please show me how to do that.. a code snippet
1
2
3
4
5
6
class containsVec
{
    public:
    std::vector<string> thevectoritself;
    std::vector<string> get() { return thevectoritself; }
};

(Haven't written a class in a while, my syntax may be a bit off.)
Topic archived. No new replies allowed.