##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::kill_dependency

From cppreference.com
< cpp‎ | atomic

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.

### [edit] Parameters

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

### [edit] Return value

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

### [edit] Exceptions

`noexcept` specification:
noexcept

### [edit] Examples

| This section is incomplete Reason: no example

### [edit] See also

memory_order (C++11) | defines memory ordering constraints for the given atomic operation (typedef) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/atomic/kill_dependency&oldid=57162"
Category:

- Todo no example