persistence/persistent_bitset.hpp
1: #ifndef STLPLUS_PERSISTENT_BITSET
2: #define STLPLUS_PERSISTENT_BITSET
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 bitset
10:
11: ////////////////////////////////////////////////////////////////////////////////
12:
13: #include "persistence_fixes.hpp"
14: #include "persistent_contexts.hpp"
15: #include <bitset>
16:
17: ////////////////////////////////////////////////////////////////////////////////
18:
19: namespace stlplus
20: {
21:
22: template<size_t N>
23: void dump_bitset(dump_context&, const std::bitset<N>& data) throw(persistent_dump_failed);
24:
25: template<size_t N>
26: void restore_bitset(restore_context&, std::bitset<N>& data) throw(persistent_restore_failed);
27:
28: } // end namespace stlplus
29:
30: ////////////////////////////////////////////////////////////////////////////////
31: #include "persistent_bitset.tpp"
32: #endif