Namespaces
Variants

std::allocator_traits<Alloc>:: deallocate

From cppreference.net
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
헤더 파일에 정의됨 <memory>
static void deallocate ( Alloc & a, pointer p, size_type n ) ;
(C++11부터)
(C++20부터 constexpr)

할당자 a 를 사용하여 p 가 참조하는 저장 공간을 a. deallocate ( p, n ) 호출을 통해 해제합니다.

목차

매개변수

a - 사용할 할당자
p - 이전에 할당된 저장 공간에 대한 포인터
n - 저장 공간이 할당된 객체의 수

반환값

(없음)

예제

참고 항목

[static]
할당자를 사용하여 초기화되지 않은 저장 공간을 할당합니다
(public static member function)
저장 공간을 해제합니다
(public member function of std::allocator<T> )