1 #ifndef STLPLUS_PERSISTENT_PAIR
2 #define STLPLUS_PERSISTENT_PAIR
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 pair
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "persistence_fixes.hpp"
14 #include "persistent_contexts.hpp"
17 ////////////////////////////////////////////////////////////////////////////////
22 template<typename V1
, typename V2
, typename D1
, typename D2
>
23 void dump_pair(dump_context
&, const std::pair
<V1
,V2
>& data
, D1 dump_fn1
, D2 dump_fn2
)
24 throw(persistent_dump_failed
);
26 template<typename V1
, typename V2
, typename R1
, typename R2
>
27 void restore_pair(restore_context
&, std::pair
<V1
,V2
>& data
, R1 restore_fn1
, R2 restore_fn2
)
28 throw(persistent_restore_failed
);
30 } // end namespace stlplus
32 ////////////////////////////////////////////////////////////////////////////////
33 #include "persistent_pair.tpp"