[#bsl-allocator-0a]
= xref:bsl.adoc[bsl]::xref:bsl/allocator-0df.adoc[allocator]&lt;void&gt;
:relfileprefix: ../
:mrdocs:

Specialization of `allocator` for `void`&period;

== Synopsis

Declared in `&lt;bslma&lowbar;bslallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
class xref:bsl/allocator-0df.adoc[allocator]&lt;void&gt;
    : public xref:bsl/allocator-0df.adoc[allocator&lt;BloombergLP::bslma::BslAllocator&lowbar;Voidish&gt;]
----

== Description

Specialization of `allocator&lt;T&gt;` where `T` is `void`&period; Does not contain members that are unrepresentable for `void`&period; Note that this specialization may be removed in the future&period; Use `allocator&lt;&gt;` or `allocator&lt;char&gt;` instead&period;

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:bsl/allocator-0df.adoc[allocator&lt;BloombergLP::bslma::BslAllocator&lowbar;Voidish&gt;]`
| An STL&hyphen;compatible allocator that forwards to a `bslma&colon;&colon;Allocator`&period;
|===

== Types

[cols="1,4"]
|===
| Name| Description
| xref:bsl/allocator-0a/rebind.adoc[`rebind`] 
| Rebind this allocator to another type&period;
|===


== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:bsl/allocator-0a/const_pointer.adoc[`const&lowbar;pointer`] 
| This `typedef` is an alias to `const void &ast;`&period;
| xref:bsl/allocator-0a/const_reference.adoc[`const&lowbar;reference`] 
| This `typedef` is an alias to a constant `value&lowbar;type` reference&period;
| xref:bsl/allocator-0a/const_void_pointer.adoc[`const&lowbar;void&lowbar;pointer`] 
| This `typedef` is an alias to `const void &ast;`&period;
| xref:bsl/allocator-0a/difference_type.adoc[`difference&lowbar;type`] 
| Difference type for allocations from this allocator&period;
| xref:bsl/allocator-0a/pointer.adoc[`pointer`] 
| This `typedef` is an alias to `void &ast;`&period;
| xref:bsl/allocator-0a/reference.adoc[`reference`] 
| This `typedef` is an alias to a modifiable `value&lowbar;type` reference&period;
| xref:bsl/allocator-0a/size_type.adoc[`size&lowbar;type`] 
| Size type for allocations from this allocator&period;
| xref:bsl/allocator-0a/value_type.adoc[`value&lowbar;type`] 
| This `typedef` is an alias to `void`&period;
| xref:bsl/allocator-0a/void_pointer.adoc[`void&lowbar;pointer`] 
| This `typedef` is an alias to `void &ast;`&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:bsl/allocator-0a/2constructor-0c.adoc[`allocator`]         [.small]#[constructor]#
| Constructors
| xref:bsl/allocator-0a/operator_assign.adoc[`operator&equals;`] 
| Assign this allocator from the specified `rhs` if it is a no&hyphen;op assignment&period;
| xref:bsl/allocator-0a/address-071.adoc[`address`] 
| Return the address of the specified object `x`&period;
| xref:bsl/allocator-0a/allocate.adoc[`allocate`] 
| Return storage for `n` objects of `value&lowbar;type`&period;
| xref:bsl/allocator-0a/construct-09.adoc[`construct`] 
| `construct` overloads
| xref:bsl/allocator-0a/deallocate.adoc[`deallocate`] 
| Deallocate the memory block at the specified `p` address&period;
| xref:bsl/allocator-0a/destroy.adoc[`destroy`] 
| Call the destructor for the object at the specified `address`&period;
| xref:bsl/allocator-0a/max_size.adoc[`max&lowbar;size`] 
| Return the maximum number of elements allocatable by this allocator&period;
| xref:bsl/allocator-0a/mechanism.adoc[`mechanism`] 
| Return a pointer to the mechanism object to which this proxy forwards allocation and deallocation calls&period;
| xref:bsl/allocator-0a/select_on_container_copy_construction.adoc[`select&lowbar;on&lowbar;container&lowbar;copy&lowbar;construction`] 
| Return a default&hyphen;constructed allocator&period;
| xref:bsl/allocator-0a/2conversion-0f.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;allocator&lt;BslAllocator&lowbar;Voidish&gt;, IsBitwiseEqualityComparable&gt;`] 
| Return a tag declaring that this allocator is bitwise copyable&period;
| xref:bsl/allocator-0a/2conversion-06.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;allocator&lt;void&gt;, IsBitwiseEqualityComparable&gt;`] 
| Declare that this type is bitwise copyable&period;
|===



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