std::swap(std::promise)
STD::交换%28 std::承诺%29
Defined in header | | |
---|---|---|
template< class R > void swap( promise<R> &lhs, promise<R> &rhs | | (since C++11) |
专攻std::swap
算法std::promise
.交换lhs
与...rhs
.有效地打电话lhs.swap(rhs)
...
参数
lhs, rhs | - | promises whose states to swap |
---|
返回值
%280%29
例外
noexcept
规格:
noexcept
例
另见
swap | swaps two promise objects (public member function) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。