Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 881 Bytes

File metadata and controls

54 lines (36 loc) · 881 Bytes

swap (非メンバ関数)

  • hazard_pointer[meta header]
  • std[meta namespace]
  • function[meta id-type]
  • cpp26[meta cpp]
namespace std {
  void swap(hazard_pointer& a, hazard_pointer& b) noexcept;
}

概要

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

効果

以下と等価である:

a.swap(b);
  • swap[link swap.md]

戻り値

なし

例外

投げない

計算量

定数時間

バージョン

言語

  • C++26

処理系

関連項目

参照