Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

atomic_compare_exchange_strong Function

Performs an atomic compare and exchange operation.

template <class Ty>
inline bool atomic_compare_exchange_strong(
   volatile atomic<Ty> *Atom,
   Ty *Exp,
   Ty Value
) _NOEXCEPT;
template <class Ty>
inline bool atomic_compare_exchange_strong(
   atomic<Ty> *Atom,
   Ty *Exp,
   TyValue
) _NOEXCEPT;
Atom

A pointer to an atomic object that stores a value of type Ty.

Exp

A pointer to a value of type Ty.

Value

A value of type Ty.

A bool that indicates the result of the value comparison.

This method performs an atomic compare and exchange operation by using implicit memory_order_seq_cst memory_order arguments. For more information, see atomic_compare_exchange_strong_explicit Function.

Header: atomic

Namespace: std

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.