Crypto++ 8.7
Free C++ class library of cryptographic schemes
|
Static secure memory block with cleanup. More...
#include <secblock.h>
Additional Inherited Members | |
Public Types inherited from AllocatorBase< T > | |
typedef T | value_type |
typedef size_t | size_type |
typedef std::ptrdiff_t | difference_type |
typedef T * | pointer |
typedef const T * | const_pointer |
typedef T & | reference |
typedef const T & | const_reference |
Public Member Functions inherited from AllocatorBase< T > | |
pointer | address (reference r) const |
const_pointer | address (const_reference r) const |
void | construct (pointer p, const T &val) |
void | destroy (pointer p) |
size_type | max_size () const |
Returns the maximum number of elements the allocator can provide. More... | |
template<typename V , typename... Args> | |
void | construct (V *ptr, Args &&... args) |
Constructs a new V using variadic arguments. More... | |
template<typename V > | |
void | destroy (V *ptr) |
Destroys an V constructed with variadic arguments. More... | |
Static Public Attributes inherited from AllocatorBase< T > | |
static const size_type | ELEMS_MAX = ... |
Returns the maximum number of elements the allocator can provide. More... | |
Static secure memory block with cleanup.
T | class or type |
S | fixed-size of the stack-based memory block, in elements |
T_Align16 | boolean that determines whether allocations should be aligned on a 16-byte boundary |
FixedSizeAllocatorWithCleanup provides a fixed-size, stack- based allocation at compile time. The class can grow its memory block at runtime if a suitable allocator is available. If size grows beyond S and a suitable allocator is available, then the statically allocated array is obsoleted.
Definition at line 336 of file secblock.h.