The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
We recommend using Visual Studio 2017

allocator<void> Class


The latest version of this topic can be found at allocator<void> Class.

A specialization of the template class allocator to type void, defining the types that make sense in this context.

template <>
class allocator<void> {
    typedef void *pointer;
    typedef const void *const_pointer;
    typedef void value_type;
template <class Other>
struct rebind;
allocator(const allocator<void>&);

template <class Other>
allocator(const allocator<Other>&);

template <class Other>
allocator<void>& operator=(const allocator<Other>&);


The class explicitly specializes template class allocator for type void. Its constructors and assignment operator behave the same as for the template class, but it defines only the following types:

Header: <memory>

Namespace: std

Thread Safety in the C++ Standard Library