|
purify
C++ Purify implementation with native circuit and BPP support
|
Allocator that clears an allocation immediately before releasing it. More...
#include <secret.hpp>
Data Structures | |
| struct | rebind |
Public Types | |
| using | value_type = T |
| using | is_always_equal = std::true_type |
| using | propagate_on_container_move_assignment = std::true_type |
Public Member Functions | |
| SecureAllocator () noexcept=default | |
| template<typename U> | |
| SecureAllocator (const SecureAllocator< U > &) noexcept | |
| T * | allocate (std::size_t count) |
| void | deallocate (T *data, std::size_t count) noexcept |
Standard containers destroy their elements before calling deallocate(). The element bytes remain addressable through the allocation at that point, so the allocator can clear both live-container storage and superseded storage from a vector reallocation.
Definition at line 40 of file secret.hpp.
| using purify::detail::SecureAllocator< T >::is_always_equal = std::true_type |
Definition at line 43 of file secret.hpp.
| using purify::detail::SecureAllocator< T >::propagate_on_container_move_assignment = std::true_type |
Definition at line 44 of file secret.hpp.
| using purify::detail::SecureAllocator< T >::value_type = T |
Definition at line 42 of file secret.hpp.
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 49 of file secret.hpp.
|
inlinenodiscard |
Definition at line 51 of file secret.hpp.
|
inlinenoexcept |
Definition at line 55 of file secret.hpp.