[#zero_after_free_allocator-0c] = xref:zero_after_free_allocator-01.adoc[zero_after_free_allocator]<byte> :mrdocs: Allocator that clears the memory it manages before returning it to the system. == Synopsis Declared in `<support/allocators/zeroafterfree.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> struct xref:zero_after_free_allocator-01.adoc[zero_after_free_allocator]<byte>; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:zero_after_free_allocator-0c/value_type.adoc[`value_type`] | The type of object this allocator allocates. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:zero_after_free_allocator-0c/2constructor-07.adoc[`zero_after_free_allocator`] [.small]#[constructor]# | Constructors | xref:zero_after_free_allocator-0c/allocate.adoc[`allocate`] | Allocates uninitialized memory for n objects using std::allocator. | xref:zero_after_free_allocator-0c/deallocate.adoc[`deallocate`] | Clears and returns memory previously obtained from allocate. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:operator_eq-038.adoc[operator==]` | Compares two allocators for equality; they are always equal since the allocator is stateless. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#