[libc++] Match declaration for non-member function std::swap(std::packaged_task) with what standard specify

Standard specifies:
```
template<class R, class... ArgTypes>
  void swap(packaged_task<R(ArgTypes...)>& x, packaged_task<R(ArgTypes...)>& y) noexcept;
```

Differential Revision: https://reviews.llvm.org/D99102
This commit is contained in:
jasonliu 2021-03-24 22:31:58 +00:00
parent 35dd6470de
commit 09a84d3047
1 changed files with 2 additions and 2 deletions

View File

@ -2126,10 +2126,10 @@ packaged_task<void(_ArgTypes...)>::reset()
__p_ = promise<result_type>();
}
template <class _Callable>
template <class _Rp, class... _ArgTypes>
inline _LIBCPP_INLINE_VISIBILITY
void
swap(packaged_task<_Callable>& __x, packaged_task<_Callable>& __y) _NOEXCEPT
swap(packaged_task<_Rp(_ArgTypes...)>& __x, packaged_task<_Rp(_ArgTypes...)>& __y) _NOEXCEPT
{
__x.swap(__y);
}