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
) _NOEXCEPT;

Parameters

  • Value
    A value of type Ty.

Return Value

The result of the bitwise and.

Remarks

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_cstmemory_order.

Requirements

Header: atomic

Namespace: std

See Also

Reference

atomic Structure

<atomic>

atomic::operator|= Operator

atomic::operator^= Operator

atomic_fetch_add_explicit Function