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

履歴 編集

function

::node_handle::デストラクタ(C++17)

~node_handle();

概要

node_handleオブジェクトを破棄する。

効果

ptr_!= nullptr の場合、std::allocator_traits<allocator_type>::destroy を呼び出して ptr_ が指す container_node_type オブジェクト内の value_type サブオブジェクトを破棄し、次に std::allocator_traits<allocator_type>::template rebind_traits<container_node_type>::deallocate を呼び出して ptr_ の割り当てを解除する。

戻り値

なし

#include <set>

int main()
{
  std::set<int>::node_type nh;
} // 解放

出力

バージョン

言語

  • C++17

処理系

参照