다음을 통해 공유


allocator<void> 클래스

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

네임스페이스: std

참고 항목

참조

C++ 표준 라이브러리의 스레드 보안