Namespaces
Variants
Views
Actions

std::kill_dependency

From cppreference.com
< cpp‎ | atomic
Revision as of 22:48, 31 May 2013 by P12bot (Talk | contribs)

Defined in header <atomic>
template< class T >
T kill_dependency( T y );

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

defines memory ordering constraints for the given atomic operation
(typedef) [edit]