1 2 3 4 5 6 7 8
#include <atomic> #include <cstdint> int main() { std::atomic_int x = {0}; return !std::atomic_is_lock_free(&x); }