1 #ifndef STLPLUS_PERSISTENT_VECTOR
2 #define STLPLUS_PERSISTENT_VECTOR
3 ////////////////////////////////////////////////////////////////////////////////
5 // Author: Andy Rushton
6 // Copyright: (c) Southampton University 1999-2004
7 // (c) Andy Rushton 2004-2009
8 // License: BSD License, see ../docs/license.html
10 // Persistence of STL vector
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "persistence_fixes.hpp"
14 #include "persistent_contexts.hpp"
17 ////////////////////////////////////////////////////////////////////////////////
24 template<typename T
, typename D
>
25 void dump_vector(dump_context
&, const std::vector
<T
>& data
, D dump_fn
)
26 throw(persistent_dump_failed
);
28 template<typename T
, typename R
>
29 void restore_vector(restore_context
&, std::vector
<T
>& data
, R restore_fn
)
30 throw(persistent_restore_failed
);
32 // specialism for vector<bool>
34 void dump_vector_bool(dump_context
&, const std::vector
<bool>& data
)
35 throw(persistent_dump_failed
);
37 void restore_vector_bool(restore_context
&, std::vector
<bool>& data
)
38 throw(persistent_restore_failed
);
40 } // end namespace stlplus
42 ////////////////////////////////////////////////////////////////////////////////
43 #include "persistent_vector.tpp"