Namespaces
Variants

std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>:: 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)
헤더 파일에 정의됨 <scoped_allocator>
void deallocate ( pointer p, size_type n ) noexcept ;
(C++11부터)

외부 할당자를 사용하여 p 가 참조하는 저장 공간을 할당 해제합니다. 이는 std:: allocator_traits < OuterAlloc > :: deallocate ( outer_allocator ( ) , p, n ) 를 호출하여 수행됩니다.

매개변수

p - 이전에 할당된 메모리를 가리키는 포인터
n - 메모리가 할당된 객체의 개수

반환값

(없음)

참고 항목

저장소를 할당 해제함
( std::allocator<T> 의 public member function)
[static]
할당자를 사용하여 저장소를 할당 해제함
( std::allocator_traits<Alloc> 의 public static member function)