最終更新日時(UTC):
が更新

履歴 編集

function
<memory_resource>

std::pmr::memory_resource::do_deallocate(C++17)

virtual void do_deallocate(void* p, std::size_t bytes, std::size_t alignment) = 0;

概要

do_allocateによって確保されたメモリを解放する。

要件

pの指すサイズbytesのメモリ領域は、*thisもしくは等しいmemory_resourceオブジェクト(this->is_equal(other) == trueとなるようなother)のallocate(bytes, alignment)によって事前に確保された領域であること。
かつ、そのメモリ領域は未解放であること。

引数

  • p -- 解放する領域へのポインタ
  • bytes -- pの確保時の要求サイズ
  • alignment -- pの確保時アライメント要求

効果

指定されたメモリ領域を解放する。

例外

投げない

バージョン

言語

  • C++17

処理系

関連項目