I need to know how Boost::Serialize works with STL containers – such as map, vector and list.
Specifically, does it saves the size of the entire container right before all the actual container data itself?
Can I read that size in order to know how large the STL container is?
I am on Win7, 64bit with Visual Studio 2010.
Thanks.
Here is the source code for boost serializing
std::vectors: http://www.boost.org/doc/libs/1_38_0/boost/serialization/vector.hppstd::sets: http://www.boost.org/doc/libs/1_38_0/boost/serialization/set.hppstd::lists: http://www.boost.org/doc/libs/1_38_0/boost/serialization/list.hppstd::vectoris pretty clear that it does. If you look in the http://www.boost.org/doc/libs/1_38_0/boost/serialization/collections_load_imp.hpp implementation header file we see:in the
load_collectionfunction. Bothstd::listandstd::setserializer calls this directly.