Hi if I C++ I created an STL map of the type map<int, vec<double>> are the vectors stored under the different keys placed consecutively in memory?
Hi if I C++ I created an STL map of the type map<int, vec<double>>
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Technically, that would be dependent on implementation of map, but in general, a map is implemented as a Tree, so the stores are not consecutive in memory, due to the nature of the tree datastructure.