Windows Dev Center

The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

atomic::operator&= Operator

Performs a bitwise and on a specified value and the stored value of *this. Used only by integral specializations.

atomic<Ty>::operator&= (
   Ty Value
) volatile _NOEXCEPT;
atomic<Ty>::operator&= (
   Ty Value


A value of type Ty.

The result of the bitwise and.

This operator performs a read-modify-write operation to replace the stored value of *this with a bitwise and of Value and the current value that is stored in *this, within the constraints of the memory_order_seq_cst memory_order.

Header: atomic

Namespace: std

© 2015 Microsoft