Namespaces
Variants

std::pmr::synchronized_pool_resource:: release

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 release ( ) ;
(C++17부터)

이 리소스가 소유한 모든 메모리를 해제합니다. 필요에 따라 상위 메모리 리소스의 deallocate 함수를 호출하여 수행됩니다.

메모리는 일부 할당된 블록에 대해 deallocate 가 호출되지 않았더라도 상위 리소스로 다시 해제됩니다.

참고 항목

메모리 할당 해제
( std::pmr::memory_resource 의 public 멤버 함수)