[#secure_allocator]
= secure&lowbar;allocator
:mrdocs:

Allocator that locks its contents from being paged out of memory and clears its contents before deletion&period;

== Synopsis

Declared in `&lt;support&sol;allocators&sol;secure&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
struct secure&lowbar;allocator;
----

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:secure_allocator/value_type.adoc[`value&lowbar;type`] 
| The type of object this allocator allocates&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:secure_allocator/2constructor-02.adoc[`secure&lowbar;allocator`]         [.small]#[constructor]#
| Constructors
| xref:secure_allocator/allocate.adoc[`allocate`] 
| Allocates locked memory for n objects from the locked pool&period;
| xref:secure_allocator/deallocate.adoc[`deallocate`] 
| Clears and returns locked memory previously obtained from allocate&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:operator_eq-06b.adoc[operator&equals;&equals;]`
| Compares two secure allocators for equality&semi; they are always equal since the allocator is stateless&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
