Namespaces
Variants
Views
Actions

std::atomic::atomic

From cppreference.com
< cpp‎ | atomic‎ | atomic
Revision as of 17:46, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 

Template:ddcl list begin <tr class="t-dcl ">

<td >
bool is_lock_free() const;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
bool is_lock_free() const volatile;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

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

Contents

Parameters

(none)

Return value

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

Exceptions

noexcept specification:  
noexcept
  

See also

Template:cpp/atomic/dcl list atomic is lock free