Note that since C++20, the default constructor of std::atomic_flag initializes it to clear state.
std::atomic_flag
Source: https://en.cppreference.com/w/cpp/atomic/atomic_flag/atomic_flag.html