A
abir
Hi,
I has a vector<int> and i want to have some additional data
associated with a few locations in the vector.
i.e I want to have unordered_map<vector<int>::iterator, MyClass>
so that given a location, i can fetch the data from MyClass object.
Though the indices (or even pointers) can be stored in case of vector,
I want a general solution.
How can I have a hash function for vector<T>::iterator or any other
iterator ?
Thanks
abir
I has a vector<int> and i want to have some additional data
associated with a few locations in the vector.
i.e I want to have unordered_map<vector<int>::iterator, MyClass>
so that given a location, i can fetch the data from MyClass object.
Though the indices (or even pointers) can be stored in case of vector,
I want a general solution.
How can I have a hash function for vector<T>::iterator or any other
iterator ?
Thanks
abir