Create streams files
[novacoin.git] / src / allocators.h
index fc95452..c787b35 100644 (file)
@@ -12,6 +12,7 @@
 #include <mutex>
 #include <cassert>
 #include <map>
+#include <vector>
 
 #ifdef WIN32
 #ifdef _WIN32_WINNT
@@ -257,4 +258,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