allocator_newdel 클래스
연산자 삭제를 사용하여 메모리 블록의 할당을 취소하고 새 연산자를 사용하여 메모리 블록을 할당하는 할당자를 구현합니다.
구문
template <class Type>
class allocator_newdel;
매개 변수
Type
할당자에 의해 할당된 요소 형식입니다.
설명
ALLOCATOR_DECL 매크로는 다음 문에서 이 클래스를 이름 매개 변수로 전달합니다.ALLOCATOR_DECL(CACHE_FREELIST stdext::allocators::max_none), SYNC_DEFAULT, allocator_newdel);
요구 사항
헤더:<할당자>
네임스페이스: stdext