Vector vs. Map
Page 1 of 1
Vector vs. Map
Vectors are used to store contiguous elements like an array. However, unlike arrays, vectors can be resized. Maps on the other hand contain unique key/value pairs and sorted by keys.
For example, a telephone guide where a key would be the name initial and value will be the number.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum