Share via


packaged_task::swap Method

Exchanges the associated asynchronous state with that of a specified object.

void swap(packaged_task& Right) _NOEXCEPT;

Parameters

  • Right
    A packaged_task object.

Requirements

Header: future

Namespace: std

See Also

Reference

packaged_task Class

<future>