std::atomic::atomic

From cppreference.com
 
 
 
 
bool is_lock_free() const;
(since C++11)
bool is_lock_free() const volatile;
(since C++11)

Checks whether the atomic operations on the object are lock-free.

Contents

[edit] Parameters

(none)

[edit] Return value

true if the atomic operations on the object are lock-free, false otherwise.

[edit] Exceptions

noexcept specification:  
noexcept
  (since C++11)

[edit] See also

checks if the atomic type's operations are lock-free
(function template)