The serialization format for vectror is in vector.hpp's code. You'll
want to look at that.
You will either need to 'output' a vector in order to read it back in,
or reverse-engineer the format (see vector.hpp) in order to reproduce it
perfectly.
If I recall correctly, vector's format is an 8 byte size encoded, THEN
each of the elements in order. SO vectors deserialization is something like:
archive(size); // size is size_t
for (size_type i =0 ;i < size; ++i){
T thing;
archive(thing);
this->push_back(thing); // i'm sure there are tricks to avoid
moving/copying here,omitted for clarity