Documentation Home >> Headers >> <atomic> Header >> std::atomic >> specializations >> std::atomic<integral-type> >> std::atomic<integral-type> Conversion Assignment Operator

Store a new value in *this.

integral-type operator=(
    integral-type b) volatile;

Effects:

this->store(b,std::memory_order_seq_cst).

Returns:

b.

Throws:

Nothing.

Header

#include <atomic>

See Also