std::atomic::atomic

From cppreference.com
< cpp‎ | atomic‎ | atomic
 
 
 
 
(since C++11)
bool is_lock_free() const;
bool is_lock_free() const volatile;

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
  

[edit] See also

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