Atomic flag spin lock

Which std::atomic_flag method is used to atomically set the flag and return its previous value?