[#zero_after_free_allocator-01] = zero_after_free_allocator :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<typename T> struct zero_after_free_allocator; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:zero_after_free_allocator-01/value_type.adoc[`value_type`] | The type of object this allocator allocates. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:zero_after_free_allocator-01/2constructor-02.adoc[`zero_after_free_allocator`] [.small]#[constructor]# | Constructors | xref:zero_after_free_allocator-01/allocate.adoc[`allocate`] | Allocates uninitialized memory for n objects using std::allocator. | xref:zero_after_free_allocator-01/deallocate.adoc[`deallocate`] | Clears and returns memory previously obtained from allocate. |=== == Specializations [cols="1,4"] |=== | Name| Description | xref:zero_after_free_allocator-0c.adoc[`zero_after_free_allocator<byte>`] | Allocator that clears the memory it manages before returning it to the system. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:operator_eq-01f.adoc[operator==]` | Compares two allocators for equality; they are always equal since the allocator is stateless. |=== == Non-Member Functions [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]#