Reputation: 21
Are there any ways to do partial deserialization of std::map that was serialized with boost::archive::text_oarchive and then saved to file? For example we have a big serialized and saved map where key is integer and value is some structure and now we need to get it back by parts... load first 100 records, then load next 100 records... etc. Are there any libs, boost classes or solutions to do it?
Upvotes: 1
Views: 130
Reputation: 1133
Normally the same serialize() function is called both to serialize and to deserialize. If you want to get it back in parts, you should serialize it in parts in the first place.
Upvotes: 1