Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

atomic_init Function

Sets the stored value in an atomic object.

template <class Ty>
inline void atomic_init(
   volatile atomic<Ty> *Atom,
   Ty Value
template <class Ty>
inline void atomic_init(
   atomic<Ty> *Atom,


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


A value of type Ty.

atomic_init is not an atomic operation. It is not thread-safe.

Header: atomic

Namespace: std

© 2015 Microsoft