Documentation Home >> Headers >> <atomic> Header >> std::atomic >> specializations >> std::atomic<integral-type> >> std::atomic<integral-type> Default Constructor

Construct an instance of std::atomic<integral-type> with a default-initialized value.

atomic<integral-type>();

Effects:

Constructs a new std::atomic<integral-type> object with a default-initialized value.

Note:

Instances of std::atomic with non-static storage duration initialized with the default constructor cannot be relied upon to have a predictable value.

Throws:

Nothing.

Header

#include <atomic>

See Also