1 #ifndef ZERO_AFTER_FREE_ALLOCATOR_H 2 #define ZERO_AFTER_FREE_ALLOCATOR_H 4 #include <openssl/crypto.h> 12 typedef std::allocator<T> base;
13 typedef typename base::size_type size_type;
14 typedef typename base::difference_type difference_type;
15 typedef typename base::pointer pointer;
16 typedef typename base::const_pointer const_pointer;
17 typedef typename base::reference reference;
18 typedef typename base::const_reference const_reference;
19 typedef typename base::value_type value_type;
27 template <
typename _Other>
32 void deallocate(T* p, std::size_t n)
35 OPENSSL_cleanse(p,
sizeof(T) * n);
36 std::allocator<T>::deallocate(p, n);
Definition: zero_after_free_allocator.h:10
Definition: zero_after_free_allocator.h:28