最終更新日時:
が更新

履歴 編集

function
<hazard_pointer>

std::swap (非メンバ関数)(C++26)

namespace std {
  void swap(hazard_pointer& a, hazard_pointer& b) noexcept;
}

概要

2つのhazard_pointerオブジェクトのハザードポインタの所有権を入れ替える。

効果

以下と等価である:

a.swap(b);

戻り値

なし

例外

投げない

計算量

定数時間

バージョン

言語

  • C++26

処理系

関連項目

参照