Swap the contents of two hazard pointer holders.

Synopsis

Declared in <folly/synchronization/Hazptr‐fwd.h>

template<template<typename> typename Atom = atomic>
void
swap(
    hazptr_holder<Atom>& a,
    hazptr_holder<Atom>& b) noexcept;

Parameters

Name

Description

a

The first holder to swap.

b

The second holder to swap.

lhs

The first holder.

rhs

The second holder.

Created with MrDocs