]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/persistence/persistent_vector.tpp
cleanup stlplus files
[chaz/yoink] / src / stlplus / persistence / persistent_vector.tpp
diff --git a/src/stlplus/persistence/persistent_vector.tpp b/src/stlplus/persistence/persistent_vector.tpp
deleted file mode 100644 (file)
index 4ad69b6..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-\r
-////////////////////////////////////////////////////////////////////////////////\r
-\r
-//   Author:    Andy Rushton\r
-//   Copyright: (c) Southampton University 1999-2004\r
-//              (c) Andy Rushton           2004-2009\r
-//   License:   BSD License, see ../docs/license.html\r
-\r
-////////////////////////////////////////////////////////////////////////////////\r
-#include "persistent_int.hpp"\r
-\r
-namespace stlplus\r
-{\r
-\r
-  ////////////////////////////////////////////////////////////////////////////////\r
-\r
-  template<typename T, typename D>\r
-  void dump_vector(dump_context& context, const std::vector<T>& data, D dump_fn)\r
-    throw(persistent_dump_failed)\r
-  {\r
-    dump_unsigned(context,data.size());\r
-    for (unsigned i = 0; i < data.size(); i++)\r
-      dump_fn(context,data[i]);\r
-  }\r
-\r
-  template<typename T, typename R>\r
-  void restore_vector(restore_context& context, std::vector<T>& data, R restore_fn)\r
-    throw(persistent_restore_failed)\r
-  {\r
-    unsigned size = 0;\r
-    restore_unsigned(context,size);\r
-    data.resize(size);\r
-    for (unsigned i = 0; i < size; i++)\r
-      restore_fn(context,data[i]);\r
-  }\r
-\r
-  ////////////////////////////////////////////////////////////////////////////////\r
-\r
-} // end namespace stlplus\r
This page took 0.023085 seconds and 4 git commands to generate.