名前空間
変種

std::pmr::memory_resource::deallocate

提供: cppreference.com
 
 
動的メモリ管理
スマートポインタ
(C++11)
(C++11)
(C++11)
(C++17未満)
(C++11)
アロケータ
メモリリソース
未初期化記憶域
ガベージコレクションサポート
その他
(C++20)
(C++11)
(C++11)
C のライブラリ
低水準のメモリ管理
 
 
<tbody> </tbody>
void deallocate(void* p, std::size_t bytes, std::size_t alignment = alignof(std::max_align_t));
(C++17以上)

p の指す記憶域を解放します。 p*this と等しい memory_resource に対する allocate(bytes, alignment) の以前の呼び出しによって返されたものでなければならず、それが指す記憶域はまだ解放されていてはなりません。

do_deallocate(p, bytes, alignment); と同等です。

例外

何も投げません。

関連項目

メモリを解放します
(仮想プライベートメンバ関数) [edit]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.