Namespaces
Variants
Views
Actions

std::atomic_fetch_and, std::atomic_fetch_and_explicit

From cppreference.com
< cpp‎ | atomic

Template:cpp/thread/navbar Template:dcl begin Template:dcl header Template:dcl Template:dcl Template:dcl Template:dcl Template:dcl end

Atomically replaces the value pointed by Template:c with the result of bitwise AND between the old value of Template:c and Template:c. Returns the value Template:c held previously.

The operation is performed as if the following is executed:

If Template:tt has no Template:tt member (this member is only provided for Template:rlp except Template:c/core), the program is ill-formed.

Contents

[edit] Parameters

Template:par begin Template:par Template:par Template:par |}

[edit] Return value

The value immediately preceding the effects of this function in the Template:lsd of Template:c.

[edit] Example

Template:include

[edit] Defect reports

Template:dr list begin Template:dr list item Template:dr list end

[edit] See also

Template:dsc begin Template:dsc inc Template:dsc inc Template:dsc inc Template:dsc see c Template:dsc end

Template:langlinks