Documentation Home >> Headers >> <atomic> Header >> std::atomic >> std::atomic Default Constructor

Construct an instance of std::atomic with a default-initialized value.

atomic();

Effects:

Constructs a new std::atomic 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