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:
rebind, a nested class template.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for