다음을 통해 공유


kill_dependency Function

Removes a dependency.

template<class Ty>
Ty kill_dependency(
   TyArg
) _NOEXCEPT;

Parameters

  • Arg
    A value of type Ty.

Return Value

The return value is Arg. The evaluation of Arg does not carry a dependency to the function call. By breaking a possible dependency chain, the function might permit the compiler to generate more efficient code.

Requirements

Header: atomic

Namespace: std

See Also

Reference

<atomic>