]> Git Repo - VerusCoin.git/blobdiff - src/allocators.h
boost: split stream classes out of serialize.h
[VerusCoin.git] / src / allocators.h
index 6b69e7ae69cf28f658588ea81011d69ff351d312..78a3b76d0cd9adf291a0d9c0fcd334b6826e0ea2 100644 (file)
@@ -9,6 +9,7 @@
 #include <map>
 #include <string>
 #include <string.h>
+#include <vector>
 
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/once.hpp>
@@ -261,4 +262,7 @@ struct zero_after_free_allocator : public std::allocator<T> {
 // This is exactly like std::string, but with a custom allocator.
 typedef std::basic_string<char, std::char_traits<char>, secure_allocator<char> > SecureString;
 
+// Byte-vector that clears its contents before deletion.
+typedef std::vector<char, zero_after_free_allocator<char> > CSerializeData;
+
 #endif // BITCOIN_ALLOCATORS_H
This page took 0.019354 seconds and 4 git commands to generate.