Construct an instance of std::atomic
with a default-initialized value.
atomic();
- Effects:
Constructs a new
std::atomicobject with a default-initialized value.- Note:
Instances of
std::atomicwith non-static storage duration initialized with the default constructor cannot be relied upon to have a predictable value.- Throws:
Nothing.
Header
#include <atomic>