R
Rares Vernica
Hi,
How can I save a reference inside a container?
For example I have:
map<string, unsigned> X;
I would like to be able to save a reference to a position inside X.
For a vector, the reference would be the index inside the vector. For
map the reference would be the key (in this case a string). The problem
is that I don't want to store the string as it might be too long. I
would like to have a smaller size reference, like an unsigned or a pointer.
Thanks,
Ray
How can I save a reference inside a container?
For example I have:
map<string, unsigned> X;
I would like to be able to save a reference to a position inside X.
For a vector, the reference would be the index inside the vector. For
map the reference would be the key (in this case a string). The problem
is that I don't want to store the string as it might be too long. I
would like to have a smaller size reference, like an unsigned or a pointer.
Thanks,
Ray