Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.25 KB

allocator-void-class.md

File metadata and controls

44 lines (33 loc) · 1.25 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: allocator<void> Class
allocator<void> Class
11/04/2016
memory/std::allocator<void>
allocator<void>
allocator<void> class
abfb40f5-c600-46a6-b130-f42c6535b2bd

allocator<void> Class

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

Syntax

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

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

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

Remarks

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