This documentation is archived and is not being maintained.

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( );
   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:

Requirements

Header: <memory>

See Also

<memory> Members | Thread Safety in the Standard C++ Library

Show: