6 #ifndef BITCOIN_SUPPORT_ALLOCATORS_SECURE_H 7 #define BITCOIN_SUPPORT_ALLOCATORS_SECURE_H 21 typedef std::allocator<T>
base;
36 template <
typename _Other>
41 T*
allocate(std::size_t n,
const void* hint = 0)
45 throw std::bad_alloc();
62 #endif // BITCOIN_SUPPORT_ALLOCATORS_SECURE_H base::const_reference const_reference
Definition: secure.h:27
base::pointer pointer
Definition: secure.h:24
base::size_type size_type
Definition: secure.h:22
std::basic_string< char, std::char_traits< char >, secure_allocator< char > > SecureString
Definition: secure.h:60
base::value_type value_type
Definition: secure.h:28
secure_allocator< _Other > other
Definition: secure.h:38
secure_allocator() noexcept
Definition: secure.h:29
void free(void *ptr)
Definition: lockedpool.cpp:309
void memory_cleanse(void *ptr, size_t len)
Definition: cleanse.cpp:14
secure_allocator(const secure_allocator &a) noexcept
Definition: secure.h:30
base::reference reference
Definition: secure.h:26
std::allocator< T > base
Definition: secure.h:21
base::const_pointer const_pointer
Definition: secure.h:25
secure_allocator(const secure_allocator< U > &a) noexcept
Definition: secure.h:32
T * allocate(std::size_t n, const void *hint=0)
Definition: secure.h:41
base::difference_type difference_type
Definition: secure.h:23
static LockedPoolManager & Instance()
Definition: lockedpool.h:222
void deallocate(T *p, std::size_t n)
Definition: secure.h:50
~secure_allocator() noexcept
Definition: secure.h:35