C++, getting a value from a list
Hello,
I know that with maps and vectors it's possible to get all the values saved in them with the [] operator. In lists it's not possible to get the values like this because I think a list has no random acces, but it must be possible to get all values by iterating. If I have an iterator i pointing to a position of the list how can I get the value saved at this position?
Thx for help
|