##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# 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.

### [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

atomic_is_lock_free (C++11) | checks if the atomic type's operations are lock-free (function template) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/atomic/atomic/is_lock_free&oldid=65617"
Category:

- unconditionally noexcept