6 #ifndef BITCOIN_SUPPORT_ALLOCATORS_SECURE_H 7 #define BITCOIN_SUPPORT_ALLOCATORS_SECURE_H 21 typedef std::allocator<T>
base;
36 template <
typename _Other>
44 p = std::allocator<T>::allocate(
n, hint);
56 std::allocator<T>::deallocate(
p,
n);
63 typedef std::vector<unsigned char, secure_allocator<unsigned char> >
SecureVector;
65 #endif // BITCOIN_SUPPORT_ALLOCATORS_SECURE_H base::const_reference const_reference
secure_allocator(const secure_allocator &a)
base::size_type size_type
std::basic_string< char, std::char_traits< char >, secure_allocator< char > > SecureString
base::value_type value_type
secure_allocator< _Other > other
void memory_cleanse(void *ptr, size_t len)
void LockRange(void *p, size_t size)
std::vector< unsigned char, secure_allocator< unsigned char > > SecureVector
base::reference reference
void UnlockRange(void *p, size_t size)
secure_allocator(const secure_allocator< U > &a)
base::const_pointer const_pointer
T * allocate(std::size_t n, const void *hint=0)
base::difference_type difference_type
static LockedPageManager & Instance()
void deallocate(T *p, std::size_t n)