Is it possible to save STL map to file? and I can load the file to map to save time. thanks!
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.
Well, you can do it manually. If not, the easiest way would be to use
boost.serialization, that comes with support for all standard containers:You can see how the reverse works (reading from archive), and also that you can use also binary archives. (You’ll need a bunch of includes too, but you can get these from the documentation.)