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

Name

Description

value_type

The type of object this allocator allocates.

Member Functions

Name

Description

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

Name

Description

operator==

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

Created with MrDocs