bsl::allocator<void>

Specialization of allocator for void.

Synopsis

Declared in <bslma_bslallocator.h>

template<>
class allocator<void>
    : public 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

NameDescription
allocator<BloombergLP::bslma::BslAllocator_Voidish>An STL-compatible allocator that forwards to a bslma::Allocator.

Types

NameDescription
rebind Rebind this allocator to another type.

Type Aliases

NameDescription
const_pointer This typedef is an alias to const void *.
const_reference This typedef is an alias to a constant value_type reference.
const_void_pointer This typedef is an alias to const void *.
difference_type Difference type for allocations from this allocator.
pointer This typedef is an alias to void *.
reference This typedef is an alias to a modifiable value_type reference.
size_type Size type for allocations from this allocator.
value_type This typedef is an alias to void.
void_pointer This typedef is an alias to void *.

Member Functions

NameDescription
allocator [constructor]Constructors
operator= Assign this allocator from the specified rhs if it is a no-op assignment.
address Return the address of the specified object x.
allocate Return storage for n objects of value_type.
construct construct overloads
deallocate Deallocate the memory block at the specified p address.
destroy Call the destructor for the object at the specified address.
max_size Return the maximum number of elements allocatable by this allocator.
mechanism Return a pointer to the mechanism object to which this proxy forwards allocation and deallocation calls.
select_on_container_copy_construction Return a default-constructed allocator.
operator BloombergLP::bslmf::NestedTraitDeclaration<allocator<BslAllocator_Voidish>, IsBitwiseEqualityComparable> Return a tag declaring that this allocator is bitwise copyable.
operator BloombergLP::bslmf::NestedTraitDeclaration<allocator<void>, IsBitwiseEqualityComparable> Declare that this type is bitwise copyable.