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> の公開メンバ関数)
[static]
アロケータを使用してストレージを解放する
( std::allocator_traits<Alloc> の公開静的メンバ関数)