std::swap(std::any)
STD::交换%28 std::任意%29
void swap(any& lhs, any& rhs | | (since C++17) |
---|
重载std::swap
算法std::any
.交换两项内容any
对象通过调用lhs.swap(rhs)
...
参数
lhs, rhs | - | objects to swap |
---|
返回值
%280%29
例外
noexcept
规格:
noexcept
另见
swap | swaps two any objects (public member function) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。