persistence/persistent_multiset.hpp
1: #ifndef STLPLUS_PERSISTENT_MULTISET
2: #define STLPLUS_PERSISTENT_MULTISET
3: ////////////////////////////////////////////////////////////////////////////////
4:
5: // Author: Andy Rushton
6: // Copyright: (c) Andy Rushton, 2007
7: // License: BSD License, see ../docs/license.html
8:
9: // Persistence of STL multiset
10:
11: ////////////////////////////////////////////////////////////////////////////////
12: #include "persistence_fixes.hpp"
13: #include "persistent_contexts.hpp"
14: #include <set>
15:
16: ////////////////////////////////////////////////////////////////////////////////
17:
18: namespace stlplus
19: {
20:
21: template<typename K, typename P, typename D>
22: void dump_multiset(dump_context&, const std::multiset<K,P>& data, D dump_fn)
23: throw(persistent_dump_failed);
24:
25: template<typename K, typename P, typename R>
26: void restore_multiset(restore_context&, std::multiset<K,P>& data, R restore_fn)
27: throw(persistent_restore_failed);
28:
29: } // end namespace stlplus
30:
31: ////////////////////////////////////////////////////////////////////////////////
32: #include "persistent_multiset.tpp"
33: #endif