[#bsl-allocator-0a] = xref:bsl.adoc[bsl]::xref:bsl/allocator-0df.adoc[allocator]<void> :relfileprefix: ../ :mrdocs: Specialization of `allocator` for `void`. == Synopsis Declared in `<bslma_bslallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> class xref:bsl/allocator-0df.adoc[allocator]<void> : public xref:bsl/allocator-0df.adoc[allocator<BloombergLP::bslma::BslAllocator_Voidish>] ---- == Description Specialization of `allocator<T>` where `T` is `void`. Does not contain members that are unrepresentable for `void`. Note that this specialization may be removed in the future. Use `allocator<>` or `allocator<char>` instead. == Base Classes [cols="1,4"] |=== | Name| Description | `xref:bsl/allocator-0df.adoc[allocator<BloombergLP::bslma::BslAllocator_Voidish>]` | An STL‐compatible allocator that forwards to a `bslma::Allocator`. |=== == Types [cols="1,4"] |=== | Name| Description | xref:bsl/allocator-0a/rebind.adoc[`rebind`] | Rebind this allocator to another type. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:bsl/allocator-0a/const_pointer.adoc[`const_pointer`] | This `typedef` is an alias to `const void *`. | xref:bsl/allocator-0a/const_reference.adoc[`const_reference`] | This `typedef` is an alias to a constant `value_type` reference. | xref:bsl/allocator-0a/const_void_pointer.adoc[`const_void_pointer`] | This `typedef` is an alias to `const void *`. | xref:bsl/allocator-0a/difference_type.adoc[`difference_type`] | Difference type for allocations from this allocator. | xref:bsl/allocator-0a/pointer.adoc[`pointer`] | This `typedef` is an alias to `void *`. | xref:bsl/allocator-0a/reference.adoc[`reference`] | This `typedef` is an alias to a modifiable `value_type` reference. | xref:bsl/allocator-0a/size_type.adoc[`size_type`] | Size type for allocations from this allocator. | xref:bsl/allocator-0a/value_type.adoc[`value_type`] | This `typedef` is an alias to `void`. | xref:bsl/allocator-0a/void_pointer.adoc[`void_pointer`] | This `typedef` is an alias to `void *`. |=== == 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=`] | Assign this allocator from the specified `rhs` if it is a no‐op assignment. | xref:bsl/allocator-0a/address-071.adoc[`address`] | Return the address of the specified object `x`. | xref:bsl/allocator-0a/allocate.adoc[`allocate`] | Return storage for `n` objects of `value_type`. | 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. | xref:bsl/allocator-0a/destroy.adoc[`destroy`] | Call the destructor for the object at the specified `address`. | xref:bsl/allocator-0a/max_size.adoc[`max_size`] | Return the maximum number of elements allocatable by this allocator. | xref:bsl/allocator-0a/mechanism.adoc[`mechanism`] | Return a pointer to the mechanism object to which this proxy forwards allocation and deallocation calls. | xref:bsl/allocator-0a/select_on_container_copy_construction.adoc[`select_on_container_copy_construction`] | Return a default‐constructed allocator. | xref:bsl/allocator-0a/2conversion-0f.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<allocator<BslAllocator_Voidish>, IsBitwiseEqualityComparable>`] | Return a tag declaring that this allocator is bitwise copyable. | xref:bsl/allocator-0a/2conversion-06.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<allocator<void>, IsBitwiseEqualityComparable>`] | Declare that this type is bitwise copyable. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#