C++ Atomic Library - is_lock_free



Description

It is used to checks if the atomic object is lock-free.

Declaration

Following is the declaration for std::atomic::is_lock_free.

bool is_lock_free() const;

C++11

bool is_lock_free() const volatile;

Parameters

(none)

Return Value

It returns true if the atomic operations on the objects of this type are lock-free, false otherwise.

Exceptions

No-noexcept − this member function never throws exceptions.

atomic.htm
Advertisements