forked from OSchip/llvm-project
[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:
parent
35dd6470de
commit
09a84d3047
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue