std::kill_dependency

Header: <atomic>

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.

# Declarations

template< class T >
T kill_dependency( T y ) noexcept;

(since C++11)

# Parameters

# Return value

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

# See also