 |
Bitcoin Core
21.99.0
P2P Digital Currency
|
Go to the documentation of this file.
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::reference reference
secure_allocator(const secure_allocator< U > &a) noexcept
secure_allocator() noexcept
~secure_allocator() noexcept
static LockedPoolManager & Instance()
Return the current instance, or create it once.
void memory_cleanse(void *ptr, size_t len)
Secure overwrite a buffer (possibly containing secret data) with zero-bytes.
base::size_type size_type
base::const_pointer const_pointer
base::difference_type difference_type
std::basic_string< char, std::char_traits< char >, secure_allocator< char > > SecureString
void * alloc(size_t size)
Allocate size bytes from this arena.
base::value_type value_type
secure_allocator< _Other > other
T * allocate(std::size_t n, const void *hint=0)
void free(void *ptr)
Free a previously allocated chunk of memory.
void deallocate(T *p, std::size_t n)
secure_allocator(const secure_allocator &a) noexcept
base::const_reference const_reference