kill_dependency
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <stdatomic.h> 中定义
|
||
| A kill_dependency(A y); |
(C11 起) | |
通知编译器memory_order_consume原子负荷运转的依赖关系树开始并没有延续过去的返回值
kill_dependency,也就是说,参数不进行返回值的依赖的.原文:
Informs the compiler that the dependency tree started by an memory_order_consume atomic load operation does not extend past the return value of
kill_dependency; that is, the argument does not carry a dependency into the return value.的功能被实现为一个宏。
A是类型y.原文:
The function is implemented as a macro.
A is the type of y.[编辑] 参数
| y | - | 从一个依赖关系树的表达,其返回值是被删除
原文: the expression whose return value is to be removed from a dependency tree |
[编辑] 返回值
返回
y的一部分,不再依赖关系树..原文:
Returns
y, no longer a part of a dependency tree.