Namespaces
Variants

std::pmr::memory_resource:: 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)
void deallocate ( void * p,

std:: size_t bytes,

std:: size_t alignment = alignof ( std:: max_align_t ) ) ;
(C++17부터)

p 가 가리키는 저장 공간을 해제합니다. p 는 이전에 allocate ( bytes, alignment ) 호출을 통해 반환된 값이어야 하며, * this 와 비교 시 동일한 memory_resource 에서 반환된 것이어야 합니다. 또한 해당 저장 공간은 아직 해제되지 않은 상태여야 합니다.

do_deallocate ( p, bytes, alignment ) ; 와 동일합니다.

예외

아무것도 던지지 않습니다.

참고 항목

[virtual]
메모리 할당 해제
(가상 private 멤버 함수)