Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/atomic/kill dependency"

From cppreference.com
< cpp‎ | atomic
m (Text replace - "/sidebar" to "/navbar")
(caps)
Line 13: Line 13:
 
===Parameters===
 
===Parameters===
 
{{param list begin}}
 
{{param list begin}}
{{param list item | y | The expression whose return value is to be removed from a dependency tree}}
+
{{param list item | y | the expression whose return value is to be removed from a dependency tree}}
 
{{param list end}}  
 
{{param list end}}  
  

Revision as of 11:47, 10 September 2012

 
 
 

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

<td>
Defined in header <atomic>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td class="t-dcl-nopad">
template< class T >
T kill_dependency( T y );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

Informs the compiler that the dependency tree started by an std::memory_order_consume atomic load operation does not extend past the return value of std::kill_dependency; that is, the argument does not carry a dependency into the return value.

Contents

Parameters

y - the expression whose return value is to be removed from a dependency tree

Return value

Returns y, no longer a part of a dependency tree.

Exceptions

noexcept specification:  
noexcept
  

Examples

See also

Template:cpp/atomic/dcl list memory order