secure_allocator

Allocator that locks its contents from being paged out of memory and clears its contents before deletion.

Synopsis

Declared in <support/allocators/secure.h>

template<typename T>
struct secure_allocator;

Type Aliases

NameDescription
value_type The type of object this allocator allocates.

Member Functions

NameDescription
secure_allocator [constructor]Constructors
allocate Allocates locked memory for n objects from the locked pool.
deallocate Clears and returns locked memory previously obtained from allocate.

Friends

NameDescription
operator==Compares two secure allocators for equality; they are always equal since the allocator is stateless.