Namespaces
Variants
Views
Actions

std::atomic::operator T()

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

 
 
 
 

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

<tr class="t-dcl ">

<td >
operator T() const;
</td>

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

<tr class="t-dcl ">

<td >
operator T() const volatile;
</td>

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

Atomically loads and returns the current value of the atomic variable. Equivalent to load().

Contents

Parameters

(none)

Return value

The current value of the atomic variable.

Exceptions

noexcept specification:  
noexcept
  

See also

Template:cpp/atomic/atomic/dcl list load